|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface SyntaxRule
represents a syntax rule.
Object
Field Summary |
Method Summary | |
ParseTree |
consume(TokenSource token_src)
Consumes tokens from the given token source following the rule. |
SyntaxException |
getSyntaxException()
Returns the last syntax exception in consuming token source through the method consume(TokenSource). |
boolean |
lookahead(TokenSource token_src)
Tests if the given token source follows this rule. |
Method Detail |
public ParseTree consume(TokenSource token_src) throws SyntaxException
token_src
- token source to consume.
SyntaxException
- in case to fail to consume.public boolean lookahead(TokenSource token_src)
token_src
- token source to consume.
public SyntaxException getSyntaxException()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |