|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.compiler.tools.antlr.runtime.Parser
at.dms.compiler.tools.antlr.runtime.LLkParser
at.dms.compiler.tools.antlr.extra.Parser
public abstract class Parser
This class describes the capabilities of parsers.
| Field Summary |
|---|
| Fields inherited from class at.dms.compiler.tools.antlr.runtime.Parser |
|---|
inputState, tokenNames |
| Constructor Summary | |
|---|---|
protected |
Parser(Compiler compiler,
Scanner scanner,
int lookahead)
Constructs a new parser instance. |
| Method Summary | |
|---|---|
PositionedError |
beautifyParseError(ParserException 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 Vector |
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 at.dms.compiler.tools.antlr.runtime.LLkParser |
|---|
consume, LA, LT |
| Methods inherited from class at.dms.compiler.tools.antlr.runtime.Parser |
|---|
consumeUntil, consumeUntil, defaultDebuggingSetup, getFilename, getInputState, getTokenName, getTokenNames, mark, match, match, matchNot, panic, reportError, reportError, reportWarning, rewind, setFilename, setInputState, setTokenBuffer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Parser(Compiler compiler,
Scanner scanner,
int lookahead)
compiler - the invoking compiler.scanner - the token stream generatorlookahead - lookahead| Method Detail |
|---|
public Compiler getCompiler()
public final InputBuffer getBuffer()
protected final TokenReference buildTokenReference()
protected final JavaStyleComment[] getStatementComment()
protected final JavadocComment getJavadocComment()
protected Vector getComment()
protected final void reportTrouble(PositionedError trouble)
trouble - the error to reportpublic PositionedError beautifyParseError(ParserException e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||