{"modulePath":"github.com/bbrodriges/gpython","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parser\n\n## Constants\n\n```go\nconst AND = 57379\n```\n\n```go\nconst ANDEQ = 57355\n```\n\n```go\nconst AS = 57380\n```\n\n```go\nconst ASSERT = 57381\n```\n\n```go\nconst BREAK = 57382\n```\n\n```go\nconst CLASS = 57383\n```\n\n```go\nconst CONTINUE = 57384\n```\n\n```go\nconst DEDENT = 57350\n```\n\n```go\nconst DEF = 57385\n```\n\n```go\nconst DEL = 57386\n```\n\n```go\nconst DIVDIV = 57363\n```\n\n```go\nconst DIVDIVEQ = 57364\n```\n\n```go\nconst DIVEQ = 57365\n```\n\n```go\nconst ELIF = 57387\n```\n\n```go\nconst ELIPSIS = 57362\n```\n\n```go\nconst ELSE = 57388\n```\n\n```go\nconst ENDMARKER = 57347\n```\n\n```go\nconst EQEQ = 57370\n```\n\n```go\nconst EVAL_INPUT = 57411\n```\n\n```go\nconst EXCEPT = 57389\n```\n\n```go\nconst FALSE = 57376\n```\n\n```go\nconst FILE_INPUT = 57410\n```\n\n```go\nconst FINALLY = 57390\n```\n\n```go\nconst FOR = 57391\n```\n\n```go\nconst FROM = 57392\n```\n\n```go\nconst GLOBAL = 57393\n```\n\n```go\nconst GTEQ = 57371\n```\n\n```go\nconst GTGT = 57372\n```\n\n```go\nconst GTGTEQ = 57373\n```\n\n```go\nconst HATEQ = 57374\n```\n\n```go\nconst IF = 57394\n```\n\n```go\nconst IMPORT = 57395\n```\n\n```go\nconst IN = 57396\n```\n\n```go\nconst INDENT = 57349\n```\n\n```go\nconst IS = 57397\n```\n\n```go\nconst LAMBDA = 57398\n```\n\n```go\nconst LTEQ = 57368\n```\n\n```go\nconst LTGT = 57369\n```\n\n```go\nconst LTLT = 57366\n```\n\n```go\nconst LTLTEQ = 57367\n```\n\n```go\nconst MINUSEQ = 57360\n```\n\n```go\nconst MINUSGT = 57361\n```\n\n```go\nconst NAME = 57348\n```\n\n```go\nconst NEWLINE = 57346\n```\n\n```go\nconst NONE = 57377\n```\n\n```go\nconst NONLOCAL = 57399\n```\n\n```go\nconst NOT = 57400\n```\n\n```go\nconst NUMBER = 57352\n```\n\n```go\nconst OR = 57401\n```\n\n```go\nconst PASS = 57402\n```\n\n```go\nconst PERCEQ = 57354\n```\n\n```go\nconst PIPEEQ = 57375\n```\n\n```go\nconst PLINGEQ = 57353\n```\n\n```go\nconst PLUSEQ = 57359\n```\n\n```go\nconst RAISE = 57403\n```\n\n```go\nconst RETURN = 57404\n```\n\n```go\nconst SINGLE_INPUT = 57409\n```\n\n```go\nconst STAREQ = 57358\n```\n\n```go\nconst STARSTAR = 57356\n```\n\n```go\nconst STARSTAREQ = 57357\n```\n\n```go\nconst STRING = 57351\n```\n\n```go\nconst TRUE = 57378\n```\n\n```go\nconst TRY = 57405\n```\n\n```go\nconst WHILE = 57406\n```\n\n```go\nconst WITH = 57407\n```\n\n```go\nconst YIELD = 57408\n```\n\n## Functions\n\n```go\nfunc DecodeEscape(in *bytes.Buffer, byteMode bool) (out *bytes.Buffer, err error)\n```\nDecodeEscape unescapes a backslash-escaped buffer\n\nbyteMode indicates whether we are creating a unicode string or a bytes output\n\n```go\nfunc NewLex(r io.Reader, filename string, mode string) (*yyLex, error)\n```\nCreate a new lexer\n\nThe mode argument specifies what kind of code must be compiled; it can be 'exec' if source consists of a sequence of statements, 'eval' if it consists of a single expression, or 'single' if it consists of a single interactive statement\n\n```go\nfunc Parse(in io.Reader, filename string, mode string) (mod ast.Mod, err error)\n```\nParse a file\n\n```go\nfunc ParseString(in string, mode string) (ast.Ast, error)\n```\nParse a string\n\n```go\nfunc SetDebug(level int)\n```\nSet the debug level 0 = off, 4 = max\n\n## Types\n\n```go\ntype LexToken struct {\n\t// contains filtered or unexported fields\n}\n```\nA Token with value\n\n```go\nfunc (lt *LexToken) String() string\n```\nString a LexToken\n\n```go\ntype LexTokens []LexToken\n```\nAn slice of LexToken~s\n\n```go\nfunc Lex(in io.Reader, filename string, mode string) (lts LexTokens, err error)\n```\nLex a file only, returning a sequence of tokens\n\n```go\nfunc LexString(in string, mode string) (lts LexTokens, err error)\n```\nLex a string\n\n```go\nfunc (as LexTokens) Eq(bs []LexToken) bool\n```\nCompare two LexTokens\n\n```go\nfunc (lts LexTokens) String() string\n```\nString a LexTokens\n\n","path":"github.com/bbrodriges/gpython/parser","name":"parser","synopsis":"","isRedistributable":true}
