Versions in this module Expand all Collapse all v1 v1.2.0 Apr 2, 2024 v1.0.1 Jan 18, 2024 Changes in this version + const EOF + const T2Colon + const T2Comma + const T3Comma + const TAnd + const TBreak + const TDo + const TElse + const TElseIf + const TEnd + const TEqeq + const TFalse + const TFor + const TFunction + const TGoto + const TGte + const TIdent + const TIf + const TIn + const TLocal + const TLte + const TNeq + const TNil + const TNot + const TNumber + const TOr + const TRepeat + const TReturn + const TString + const TThen + const TTrue + const TUntil + const TWhile + const UNARY + func Dump(chunk []ast.Stmt) string + func Parse(reader io.Reader, name string) (chunk []ast.Stmt, err error) + func TokenName(c int) string + type Error struct + Message string + Pos ast.Position + Token string + func (e *Error) Error() string + type Lexer struct + PNewLine bool + PrevTokenType int + Stmts []ast.Stmt + Token ast.Token + func (lx *Lexer) Error(message string) + func (lx *Lexer) Lex(lval *yySymType) int + func (lx *Lexer) TokenError(tok ast.Token, message string) + type Scanner struct + Pos ast.Position + func NewScanner(reader io.Reader, source string) *Scanner + func (sc *Scanner) Error(tok string, msg string) *Error + func (sc *Scanner) Newline(ch int) + func (sc *Scanner) Next() int + func (sc *Scanner) Peek() int + func (sc *Scanner) Scan(lexer *Lexer) (ast.Token, error) + func (sc *Scanner) TokenError(tok ast.Token, msg string) *Error