package
0.0.0-20201212205213-ae3286749100
Repository: https://github.com/npillmayer/gotype.git
Documentation: pkg.go.dev
# Functions
Allocate a variable in a memory frame.
Variable assignment.
MetaFont begingroup command: push a new scope and memory frame.
Apply a (math or scripting) function, given by name, to a known/constant argument.
Call the Lua script for a vardef variable.
Construct a valid variable reference string from parts on the stack.
Declare a tag to be of type tp.
A variable which goes out of scope becomes a "capsule".
Make all variables in a memory frame "capsules".
MetaFont endgroup command: pop scope and memory frame of group.
Given a variable reference, locate an incarnation in a memory frame.
I do not always understand ANTLR V4's Go runtime typing and tree semantics (rather poorly documented), so I introduce some helpers.
The expression stack knows nothing about the interpreter's symbols, except the few properties of interface Symbol.
I do not always understand ANTLR V4's Go runtime typing and tree semantics (rather poorly documented), so I introduce some helpers.
Load builtin symbols into a scope (usually the global scope).
Get or create a variable reference.
Create a new scripting subsystem.
Decrease grouping level.
Push a constant (numeric or pair type) onto the expression stack.
The expression stack knows nothing about the interpreter's symbols, except the few properties of interface Symbol.
Trace to the ScriptingTracer.
Save a tag within a group.
Scale a numeric value by a unit.
Show all declarations and references for a tag.
Trace to the InterpreterTracer.
TODO complete this.
Create a variable reference.
Create a whatever anonymous variable.
# Variables
Declaration of 'whatever', used to instantiate anonymous whatever-variables.
# Structs
Lua UserData type for the DSL's interpreter runtime environment.
Lua UserData type for pairs.
Lua UserData type for variables.
Type Scripting is an opaque data type to provide access to the
scripting sub-system.
Iterator type for scripting return values.
Type to return values from Lua scripts.
We create our own type of error listener for the ANTLR parser.