Skip to content

Feature: add script inclusion support #10

Description

@nholthaus

Problem

Scripts currently run as a single file with no way to compose larger programs from smaller reusable files. As scripts grow, this makes reuse, organization, and shared definitions harder than they need to be.

Specification

Add support for including one script file from another.

Acceptance criteria:

  • A script can include another script file by path.
  • Included scripts execute in a predictable order relative to the including script.
  • Relative paths are resolved consistently.
  • Missing include targets fail with a clear error message.
  • Recursive or cyclic inclusion is detected and handled with a clear error message.

Motivation

This would make larger scripts easier to organize, encourage reuse, and create a more realistic extension point for future language features.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions