sonic-weave
    Preparing search index...

    Function evaluateSource

    • Evaluate a SonicWeave program and return a StatementVisitor representing the final runtime state.

      Parameters

      • source: string

        Source code for a SonicWeave program.

      • includePrelude: boolean = true

        Whether or not to include the extended standard library. Passing in false results in a faster start-up time.

      • OptionalextraBuiltins: Record<string, SonicWeaveValue>

        Custom builtins callable inside the SonicWeave program.

      Returns StatementVisitor

      A SonicWeave statement visitor after evaluating all of the statements in the program.

      Any parser or runtime error raised while executing the program.