public class TreeParserBase extends TreeParserEx
TreeParserEx)
and support for working with symbol tables.| Constructor and Description |
|---|
TreeParserBase(org.antlr.runtime.tree.TreeNodeStream input,
org.antlr.runtime.RecognizerSharedState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignSymbols(SymbolTable symbols) |
protected void |
checkMemberDeclared(org.antlr.runtime.tree.CommonTree t,
java.lang.Enum<?> expectedKind) |
protected void |
checkRedeclared(org.antlr.runtime.tree.CommonTree current) |
protected void |
declare(org.antlr.runtime.tree.CommonTree t,
java.lang.Enum<?> kind,
boolean scoped) |
protected void |
declareAndPushSymbolScope(org.antlr.runtime.tree.CommonTree t,
java.lang.Enum<?> kind) |
protected Symbol |
getSymbol(org.antlr.runtime.tree.CommonTree id) |
SymbolTable |
getSymbols() |
protected boolean |
isDeclaredAs(org.antlr.runtime.tree.CommonTree t,
java.lang.Enum<?> expectedKind) |
protected void |
popSymbolScope() |
protected void |
pushSymbolScope(org.antlr.runtime.tree.CommonTree scopeID) |
assignLog, checkNotNull, checkNotNull, checkNotNull, emitErrorMessage, getErrorCount, isCorrect, raiseError, raiseError, reportError, reportError, resetErrorCount, wheregetAncestor, getCurrentInputSymbol, getErrorHeader, getErrorMessage, getMissingSymbol, getSourceName, getTreeNodeStream, inContext, inContext, matchAny, recoverFromMismatchedToken, reset, setTreeNodeStream, traceIn, traceOutalreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, endResync, failed, getBacktrackingLevel, getGrammarFileName, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, setBacktrackingLevel, toStrings, traceIn, traceOutpublic TreeParserBase(org.antlr.runtime.tree.TreeNodeStream input,
org.antlr.runtime.RecognizerSharedState state)
public final void assignSymbols(SymbolTable symbols)
public final SymbolTable getSymbols()
protected final void checkRedeclared(org.antlr.runtime.tree.CommonTree current)
throws SemanticException
SemanticExceptionprotected final boolean isDeclaredAs(org.antlr.runtime.tree.CommonTree t,
java.lang.Enum<?> expectedKind)
protected final void declare(org.antlr.runtime.tree.CommonTree t,
java.lang.Enum<?> kind,
boolean scoped)
throws SemanticException
SemanticExceptionprotected final void declareAndPushSymbolScope(org.antlr.runtime.tree.CommonTree t,
java.lang.Enum<?> kind)
throws SemanticException
SemanticExceptionprotected final void checkMemberDeclared(org.antlr.runtime.tree.CommonTree t,
java.lang.Enum<?> expectedKind)
throws SemanticException
SemanticExceptionprotected final void pushSymbolScope(org.antlr.runtime.tree.CommonTree scopeID)
protected final void popSymbolScope()
protected final Symbol getSymbol(org.antlr.runtime.tree.CommonTree id) throws SemanticException
SemanticException