sonic-weave
    Preparing search index...

    Function getGlobalVisitor

    • Note: Use getSourceVisitor instead unless you need hack the built-ins for some reason. Obtain a runtime visitor usable as the parent scope of a visitor for the body of a program produced by parseAST. The returned visitor is suitable as shared global state; user code normally runs in a child visitor created by getSourceVisitor.

      Parameters

      • 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 evaluator containing the built-in global scope.