Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Result = newResult()
)
parser auxiliary variables
Functions ¶
Types ¶
type InputLex ¶
type InputLex struct {
// contains filtered or unexported fields
}
func NewInputLex ¶
func NewInputLex(input io.ByteScanner, debug bool) *InputLex
func (*InputLex) Reduced ¶
Reduced is hook for recording a reduction. https://godoc.org/modernc.org/goyacc Optionally the argument to yyParse may implement the following interface: Reduced(rule, state int, lval *yySymType) (stop bool) // Client should copy *lval.
type ParserResult ¶
type ParserResult struct {
Root []node.Node
LineNumbers map[string]node.LineNumber // used by GOTO GOSUB etc
LibReadData bool
LibGosubReturn bool
LibMath bool
Baslib bool
ForStack []*node.NodeFor
WhileStack []*node.NodeWhile
CountFor int
CountNext int
ArrayTable map[string]node.ArraySymbol
CountGosub int
CountReturn int
CountWhile int
CountWend int
CountIf int
FuncTable map[string]node.FuncSymbol
Imports map[string]struct{}
Declarations []string
RestoreTable map[string]int
DataOffset int
TypeTable []int
Graphics bool
}
Click to show internal directories.
Click to hide internal directories.