public class Parser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
pointer |
(package private) java.util.List<Token> |
tokenList |
| Constructor and Description |
|---|
Parser(java.util.List<Token> tokenList) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
advanceTokenPointer() |
private Node |
C() |
private Node |
E() |
private Node |
Eopt() |
(package private) void |
expectCurlyRight(Token t) |
(package private) void |
expectNotNull(Token t,
java.lang.String expected) |
private boolean |
isDefaultToken(Token t) |
private Node |
makeNewLiteralNode(java.lang.String s) |
Node |
parse() |
(package private) Token |
peekAtCurentToken() |
private Node |
T() |
private Node |
V() |
final java.util.List<Token> tokenList
int pointer
public Parser(java.util.List<Token> tokenList)
public Node parse() throws ScanException
ScanExceptionprivate Node E() throws ScanException
ScanExceptionprivate Node Eopt() throws ScanException
ScanExceptionprivate Node T() throws ScanException
ScanExceptionprivate Node makeNewLiteralNode(java.lang.String s)
private Node V() throws ScanException
ScanExceptionprivate Node C() throws ScanException
ScanExceptionprivate boolean isDefaultToken(Token t)
void advanceTokenPointer()
void expectNotNull(Token t, java.lang.String expected)
void expectCurlyRight(Token t) throws ScanException
ScanExceptionToken peekAtCurentToken()