Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 }
var ( //Result = newResult() Result ParserResult )
parser auxiliary variables
Click to show internal directories.
Click to hide internal directories.