|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.Parser | +--antlr.LLkParser | +--at.dms.compiler.Parser
This class describes the capabilities of parsers.
Fields inherited from class antlr.LLkParser |
k |
Fields inherited from class antlr.Parser |
astFactory, inputState, returnAST, tokenNames, traceDepth |
Constructor Summary | |
protected |
Parser(Compiler compiler,
Scanner scanner,
int lookahead)
Constructs a new parser instance. |
Method Summary | |
PositionedError |
beautifyParseError(antlr.RecognitionException e)
Generate an human readable error message |
protected TokenReference |
buildTokenReference()
Returns a reference to the current position in the source file. |
InputBuffer |
getBuffer()
Returns the input buffer. |
protected java.util.List |
getComment()
|
Compiler |
getCompiler()
Returns the compiler driver which invoked the parser. |
protected JavadocComment |
getJavadocComment()
|
protected JavaStyleComment[] |
getStatementComment()
|
protected void |
reportTrouble(PositionedError trouble)
Reports that an error has been detected in the lexical analyser. |
Methods inherited from class antlr.LLkParser |
consume, LA, LT, traceIn, traceOut |
Methods inherited from class antlr.Parser |
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
protected Parser(Compiler compiler, Scanner scanner, int lookahead)
compiler
- the invoking compiler.scanner
- the token stream generatorlookahead
- lookaheadMethod Detail |
public Compiler getCompiler()
public final InputBuffer getBuffer()
protected final TokenReference buildTokenReference()
protected final JavaStyleComment[] getStatementComment()
protected final JavadocComment getJavadocComment()
protected java.util.List getComment()
protected final void reportTrouble(PositionedError trouble)
error
- the error to reportpublic PositionedError beautifyParseError(antlr.RecognitionException e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |