{"modulePath":"github.com/awirix/lua","version":"v1.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parse\n\n## Constants\n\n```go\nconst EOF = -1\n```\n\n```go\nconst T2Comma = 57371\n```\n\n```go\nconst T3Comma = 57372\n```\n\n```go\nconst TAnd = 57346\n```\n\n```go\nconst TBreak = 57347\n```\n\n```go\nconst TDo = 57348\n```\n\n```go\nconst TElse = 57349\n```\n\n```go\nconst TElseIf = 57350\n```\n\n```go\nconst TEnd = 57351\n```\n\n```go\nconst TEqeq = 57367\n```\n\n```go\nconst TFalse = 57352\n```\n\n```go\nconst TFor = 57353\n```\n\n```go\nconst TFunction = 57354\n```\n\n```go\nconst TGte = 57370\n```\n\n```go\nconst TIdent = 57373\n```\n\n```go\nconst TIf = 57355\n```\n\n```go\nconst TIn = 57356\n```\n\n```go\nconst TLocal = 57357\n```\n\n```go\nconst TLte = 57369\n```\n\n```go\nconst TNeq = 57368\n```\n\n```go\nconst TNil = 57358\n```\n\n```go\nconst TNot = 57359\n```\n\n```go\nconst TNumber = 57374\n```\n\n```go\nconst TOr = 57360\n```\n\n```go\nconst TRepeat = 57362\n```\n\n```go\nconst TReturn = 57361\n```\n\n```go\nconst TString = 57375\n```\n\n```go\nconst TThen = 57363\n```\n\n```go\nconst TTrue = 57364\n```\n\n```go\nconst TUntil = 57365\n```\n\n```go\nconst TWhile = 57366\n```\n\n```go\nconst UNARY = 57376\n```\n\n## Functions\n\n```go\nfunc Dump(chunk []ast.Stmt) string\n```\n\n```go\nfunc Parse(reader io.Reader, name string) (chunk []ast.Stmt, err error)\n```\n\n```go\nfunc TokenName(c int) string\n```\n\n## Types\n\n```go\ntype Error struct {\n\tPos     ast.Position\n\tMessage string\n\tToken   string\n}\n```\n\n```go\nfunc (e *Error) Error() string\n```\n\n```go\ntype Lexer struct {\n\tStmts         []ast.Stmt\n\tPNewLine      bool\n\tToken         ast.Token\n\tPrevTokenType int\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (lx *Lexer) Error(message string)\n```\n\n```go\nfunc (lx *Lexer) Lex(lval *yySymType) int\n```\n\n```go\nfunc (lx *Lexer) TokenError(tok ast.Token, message string)\n```\n\n```go\ntype Scanner struct {\n\tPos ast.Position\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewScanner(reader io.Reader, source string) *Scanner\n```\n\n```go\nfunc (sc *Scanner) Error(tok string, msg string) *Error\n```\n\n```go\nfunc (sc *Scanner) Newline(ch int)\n```\n\n```go\nfunc (sc *Scanner) Next() int\n```\n\n```go\nfunc (sc *Scanner) Peek() int\n```\n\n```go\nfunc (sc *Scanner) Scan(lexer *Lexer) (ast.Token, error)\n```\n\n```go\nfunc (sc *Scanner) TokenError(tok ast.Token, msg string) *Error\n```\n\n","path":"github.com/awirix/lua/parse","name":"parse","synopsis":"","isRedistributable":true}
