| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.atn | |
| org.antlr.v4.runtime.dfa | |
| org.antlr.v4.runtime.misc | |
| org.antlr.v4.runtime.tree | |
| org.antlr.v4.runtime.tree.gui |
| Modifier and Type | Method and Description |
|---|---|
ATNConfigSet |
NoViableAltException.getDeadEndConfigs() |
ATNConfigSet |
LexerNoViableAltException.getDeadEndConfigs() |
String |
FailedPredicateException.getPredicate() |
| Modifier and Type | Method and Description |
|---|---|
void |
Recognizer.action(RuleContext _localctx,
int ruleIndex,
int actionIndex) |
Future<JDialog> |
RuleContext.inspect(List<String> ruleNames) |
Future<JDialog> |
RuleContext.inspect(Parser parser)
Call this method to view a parse tree in a dialog box visually.
|
void |
Parser.notifyErrorListeners(Token offendingToken,
String msg,
RecognitionException e) |
void |
ANTLRErrorStrategy.recover(Parser recognizer,
RecognitionException e)
Resynchronize the parser by consuming tokens until we find one
in the resynchronization set--loosely the set of tokens that can follow
the current rule.
|
void |
TokenStreamRewriter.replace(String programName,
int from,
int to,
Object text) |
void |
TokenStreamRewriter.replace(String programName,
Token from,
Token to,
Object text) |
void |
ANTLRErrorStrategy.reportError(Parser recognizer,
RecognitionException e)
Report any kind of RecognitionException.
|
void |
RuleContext.save(List<String> ruleNames,
String fileName)
Save this tree in a postscript file
|
void |
RuleContext.save(List<String> ruleNames,
String fileName,
String fontName,
int fontSize)
Save this tree in a postscript file using a particular font name and size
|
void |
RuleContext.save(Parser parser,
String fileName)
Save this tree in a postscript file
|
void |
RuleContext.save(Parser parser,
String fileName,
String fontName,
int fontSize)
Save this tree in a postscript file using a particular font name and size
|
boolean |
Recognizer.sempred(RuleContext _localctx,
int ruleIndex,
int actionIndex) |
void |
ANTLRErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e)
Upon syntax error, notify any interested parties.
|
void |
ANTLRErrorListener.syntaxError(Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
RecognitionException e)
Upon syntax error, notify any interested parties.
|
String |
RuleContext.toString(List<String> ruleNames) |
String |
RuleContext.toString(List<String> ruleNames,
RuleContext stop) |
String |
RuleContext.toString(List<String> ruleNames,
RuleContext stop) |
String |
RuleContext.toString(Recognizer<?,?> recog) |
String |
RuleContext.toString(Recognizer<?,?> recog,
RuleContext stop) |
String |
RuleContext.toString(Recognizer<?,?> recog,
RuleContext stop) |
String |
RuleContext.toStringTree(List<String> ruleNames)
Print out a whole tree, not just a node, in LISP format
(root child1 ..
|
String |
RuleContext.toStringTree(Parser recog)
Print out a whole tree, not just a node, in LISP format
(root child1 ..
|
| Modifier and Type | Field and Description |
|---|---|
PredictionContext |
ATNConfig.context
The stack of invoking states leading to the rule/states associated
with this config.
|
protected Parser |
ParserATNSimulator.parser |
protected Lexer |
LexerATNSimulator.recog |
| Modifier and Type | Method and Description |
|---|---|
IntervalSet[] |
LL1Analyzer.getDecisionLookahead(ATNState s)
From an ATN state,
s, find the set of all labels reachable from
s at depth k. |
DFA |
LexerATNSimulator.getDFA(int mode) |
ATNConfig |
ParserATNSimulator.getEpsilonTarget(ATNConfig config,
Transition t,
boolean collectPredicates,
boolean inContext,
boolean fullCtx) |
LexerATNConfig |
LexerATNSimulator.getEpsilonTarget(CharStream input,
LexerATNConfig config,
Transition t,
ATNConfigSet configs,
boolean speculative) |
ATNState |
ParserATNSimulator.getReachableTarget(Transition trans,
int ttype) |
ATNState |
LexerATNSimulator.getReachableTarget(Transition trans,
int t) |
IntervalSet |
Transition.label() |
ATNConfig |
ParserATNSimulator.predTransition(ATNConfig config,
PredicateTransition pt,
boolean collectPredicates,
boolean inContext,
boolean fullCtx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
LL1Analyzer._LOOK(ATNState s,
PredictionContext ctx,
IntervalSet look,
Set<ATNConfig> lookBusy,
boolean seeThruPreds,
boolean addEOF)
Compute set of tokens that can come next.
|
int |
ParserATNSimulator.adaptivePredict(TokenStream input,
int decision,
ParserRuleContext outerContext) |
boolean |
ATNConfigSet.add(ATNConfig config,
DoubleKeyMap<PredictionContext,PredictionContext,PredictionContext> mergeCache)
Adding a new config means merging contexts with existing configs for
(s, i, pi, _), where s is the
ATNConfig.state, i is the ATNConfig.alt, and
pi is the ATNConfig.semanticContext. |
protected void |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState from,
int t,
DFAState to) |
protected void |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState from,
int t,
DFAState to) |
void |
ATN.addState(ATNState state) |
ATNConfigSet |
ParserATNSimulator.computeStartState(ATNState p,
RuleContext ctx,
boolean fullCtx) |
int |
ParserATNSimulator.execDFA(DFA dfa,
DFAState s0,
TokenStream input,
int startIndex,
ParserRuleContext outerContext) |
IntervalSet[] |
LL1Analyzer.getDecisionLookahead(ATNState s)
From an ATN state,
s, find the set of all labels reachable from
s at depth k. |
IntervalSet |
LL1Analyzer.LOOK(ATNState s,
RuleContext ctx)
Get lookahead, using
ctx if we reach end of rule. |
int |
ParserATNSimulator.predictATN(DFA dfa,
TokenStream input,
ParserRuleContext outerContext) |
String |
PredictionContext.toString(Recognizer<?,?> recog) |
String |
ATNConfig.toString(Recognizer<?,?> recog,
boolean showAlt) |
String |
PredictionContext.toString(Recognizer<?,?> recog,
RuleContext stop) |
| Constructor and Description |
|---|
ATNConfig(ATNConfig c,
ATNState state,
PredictionContext context) |
ATNConfig(ATNConfig c,
ATNState state,
PredictionContext context,
SemanticContext semanticContext) |
ATNConfig(ATNState state,
int alt,
PredictionContext context) |
ATNConfig(ATNState state,
int alt,
PredictionContext context,
SemanticContext semanticContext) |
LexerATNConfig(ATNState state,
int alt,
PredictionContext context) |
LexerATNConfig(ATNState state,
int alt,
PredictionContext context,
int actionIndex) |
LexerATNConfig(LexerATNConfig c,
ATNState state,
PredictionContext context) |
LexerATNSimulator(Lexer recog,
ATN atn,
DFA[] decisionToDFA,
PredictionContextCache sharedContextCache) |
NotSetTransition(ATNState target,
IntervalSet set) |
ParserATNSimulator(Parser parser,
ATN atn,
DFA[] decisionToDFA,
PredictionContextCache sharedContextCache) |
SetTransition(ATNState target,
IntervalSet set) |
| Modifier and Type | Field and Description |
|---|---|
DFAState[] |
DFAState.edges
edges[symbol] points to target of symbol. |
DFAState.PredPrediction[] |
DFAState.predicates
During SLL parsing, this is a list of predicates associated with the
ATN configurations of the DFA state.
|
DFAState |
DFA.s0 |
| Modifier and Type | Method and Description |
|---|---|
String |
DFA.toString(String[] tokenNames) |
| Constructor and Description |
|---|
DFASerializer(DFA dfa,
String[] tokenNames) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Array2DHashSet.containsFast(T obj) |
void |
LogManager.log(String component,
String msg) |
boolean |
Array2DHashSet.removeFast(T obj) |
| Constructor and Description |
|---|
Array2DHashSet(AbstractEqualityComparator<? super T> comparator) |
Array2DHashSet(AbstractEqualityComparator<? super T> comparator,
int initialCapacity,
int initialBucketCapacity) |
FlexibleHashMap(AbstractEqualityComparator<? super K> comparator) |
FlexibleHashMap(AbstractEqualityComparator<? super K> comparator,
int initialCapacity,
int initialBucketCapacity) |
| Modifier and Type | Method and Description |
|---|---|
static String |
Trees.getNodeText(Tree t,
List<String> ruleNames) |
static String |
Trees.getNodeText(Tree t,
Parser recog) |
static String |
Trees.getPS(Tree t,
List<String> ruleNames) |
static String |
Trees.getPS(Tree t,
List<String> ruleNames,
String fontName,
int fontSize) |
static String |
Trees.toStringTree(Tree t,
List<String> ruleNames)
Print out a whole tree in LISP form.
|
static String |
Trees.toStringTree(Tree t,
Parser recog)
Print out a whole tree in LISP form.
|
static void |
Trees.writePS(Tree t,
List<String> ruleNames,
String fileName) |
static void |
Trees.writePS(Tree t,
List<String> ruleNames,
String fileName,
String fontName,
int fontSize) |
| Constructor and Description |
|---|
TreePostScriptGenerator(List<String> ruleNames,
Tree root) |
TreePostScriptGenerator(List<String> ruleNames,
Tree root,
String fontName,
int fontSize) |
TreeViewer.DefaultTreeTextProvider(List<String> ruleNames) |
TreeViewer(List<String> ruleNames,
Tree tree) |
Copyright © 1992-2013 ANTLR. All Rights Reserved.