Documentation ¶ Index ¶ Variables type Parser func New(l lexer.Lexer) Parser Constants ¶ This section is empty. Variables ¶ View Source var ( ErrUnexpectedTokenType = errors.New("unexpected token type") ErrPrefixParseFnNotFound = errors.New("prefix parse function not found") ErrInfixParseFnNotFound = errors.New("infix parse function not found") ) Functions ¶ This section is empty. Types ¶ type Parser ¶ type Parser interface { ParseProgram(text string) (*ast.Program, []error) } a Pratt Parser interface func New ¶ func New(l lexer.Lexer) Parser Source Files ¶ View all Source files errors.go parser.go Click to show internal directories. Click to hide internal directories.