public abstract class Parser
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
|
Parser(AJELexer lexer) |
|
Parser(AJELexer lexer,
Grammar grammar) |
protected |
Parser(Parser proxy) |
| Modifier and Type | Method and Description |
|---|---|
Token |
eat() |
Token |
eat(TokenType expected) |
java.util.Map<TokenType,InfixParser> |
getInfixParsers() |
Token |
getLast() |
AJELexer |
getLexer() |
int |
getPrecedence() |
java.util.Map<TokenType,PrefixParser> |
getPrefixParsers() |
java.util.List<Token> |
getTokens() |
boolean |
match(TokenType expected) |
boolean |
nextIs(TokenType type) |
Token |
peek(int distance) |
boolean |
peek(TokenType... tokens) |
boolean |
peekAny(TokenType... tokens) |
public Token getLast()
public java.util.Map<TokenType,PrefixParser> getPrefixParsers()
public java.util.Map<TokenType,InfixParser> getInfixParsers()
public java.util.List<Token> getTokens()
public AJELexer getLexer()
public boolean match(TokenType expected)
public Token eat()
public Token peek(int distance)
public boolean peek(TokenType... tokens)
public boolean peekAny(TokenType... tokens)
public boolean nextIs(TokenType type)
public int getPrecedence()