class PrattParser::Parser
- PrattParser::Parser
- Reference
- Object
Defined in:
parser.crConstructors
Instance Method Summary
- #consume(expected : TokenType) : Token
- #consume : Token
- #get_precedence : Int
- #infix_left(token_type : TokenType, precedence : Precedence)
- #infix_right(token_type : TokenType, precedence : Precedence)
- #match(expected_token_type : TokenType) : Bool
- #parse_expression(precedence : Int = 0) : Expression
- #postfix(token_type : TokenType, precedence : Precedence)
- #prefix(token_type : TokenType)
- #register(token_type, parselet : PrefixParselet)
- #register(token_type, parselet : InfixParselet)