Uses of Class
antlr.Lookahead
-
Packages that use Lookahead Package Description antlr -
-
Uses of Lookahead in antlr
Fields in antlr declared as Lookahead Modifier and Type Field Description protected Lookahead[]
Alternative. cache
protected Lookahead[]
RuleBlock. cache
protected Lookahead[]
RuleEndElement. cache
protected Lookahead[]
BlockWithImpliedExitPath. exitCache
lookahead to bypass block; set by deterministic().Methods in antlr that return Lookahead Modifier and Type Method Description Lookahead
LLkAnalyzer. FOLLOW(int k, RuleEndElement end)
Compute the lookahead set of whatever follows references to the rule associated witht the FOLLOW block.Lookahead
LLkGrammarAnalyzer. FOLLOW(int k, RuleEndElement end)
Lookahead
Lookahead. intersection(Lookahead q)
What is the intersection of two lookahead depths? Only the Epsilon "bit" and bitset are considered.Lookahead
ActionElement. look(int k)
Lookahead
AlternativeBlock. look(int k)
Lookahead
BlockEndElement. look(int k)
Lookahead
CharLiteralElement. look(int k)
Lookahead
CharRangeElement. look(int k)
Lookahead
GrammarElement. look(int k)
Lookahead
LLkAnalyzer. look(int k, ActionElement action)
Actions are ignoredLookahead
LLkAnalyzer. look(int k, AlternativeBlock blk)
Combine the lookahead computed for each alternativeLookahead
LLkAnalyzer. look(int k, BlockEndElement end)
Compute what follows this place-holder node and possibly what begins the associated loop unless the node is locked.Lookahead
LLkAnalyzer. look(int k, CharLiteralElement atom)
Return this char as the lookahead if k=1.Lookahead
LLkAnalyzer. look(int k, CharRangeElement r)
Lookahead
LLkAnalyzer. look(int k, GrammarAtom atom)
Lookahead
LLkAnalyzer. look(int k, OneOrMoreBlock blk)
The lookahead of a (...)+ block is the combined lookahead of all alternatives and, if an empty path is found, the lookahead of what follows the block.Lookahead
LLkAnalyzer. look(int k, RuleBlock blk)
Combine the lookahead computed for each alternative.Lookahead
LLkAnalyzer. look(int k, RuleEndElement end)
If not locked or noFOLLOW set, compute FOLLOW of a rule.Lookahead
LLkAnalyzer. look(int k, RuleRefElement rr)
Compute the lookahead contributed by a rule reference.Lookahead
LLkAnalyzer. look(int k, StringLiteralElement atom)
Lookahead
LLkAnalyzer. look(int k, SynPredBlock blk)
The lookahead of a (...)=> block is the lookahead of what follows the block.Lookahead
LLkAnalyzer. look(int k, TokenRangeElement r)
Lookahead
LLkAnalyzer. look(int k, TreeElement t)
Lookahead
LLkAnalyzer. look(int k, WildcardElement wc)
Lookahead
LLkAnalyzer. look(int k, ZeroOrMoreBlock blk)
The (...)* element is the combined lookahead of the alternatives and what can follow the loop.Lookahead
LLkAnalyzer. look(int k, java.lang.String rule)
Compute the combined lookahead for all productions of a rule.Lookahead
LLkGrammarAnalyzer. look(int k, ActionElement action)
Lookahead
LLkGrammarAnalyzer. look(int k, AlternativeBlock blk)
Lookahead
LLkGrammarAnalyzer. look(int k, BlockEndElement end)
Lookahead
LLkGrammarAnalyzer. look(int k, CharLiteralElement atom)
Lookahead
LLkGrammarAnalyzer. look(int k, CharRangeElement end)
Lookahead
LLkGrammarAnalyzer. look(int k, GrammarAtom atom)
Lookahead
LLkGrammarAnalyzer. look(int k, OneOrMoreBlock blk)
Lookahead
LLkGrammarAnalyzer. look(int k, RuleBlock blk)
Lookahead
LLkGrammarAnalyzer. look(int k, RuleEndElement end)
Lookahead
LLkGrammarAnalyzer. look(int k, RuleRefElement rr)
Lookahead
LLkGrammarAnalyzer. look(int k, StringLiteralElement atom)
Lookahead
LLkGrammarAnalyzer. look(int k, SynPredBlock blk)
Lookahead
LLkGrammarAnalyzer. look(int k, TokenRangeElement end)
Lookahead
LLkGrammarAnalyzer. look(int k, TreeElement end)
Lookahead
LLkGrammarAnalyzer. look(int k, WildcardElement wc)
Lookahead
LLkGrammarAnalyzer. look(int k, ZeroOrMoreBlock blk)
Lookahead
LLkGrammarAnalyzer. look(int k, java.lang.String rule)
Lookahead
OneOrMoreBlock. look(int k)
Lookahead
RuleBlock. look(int k)
Lookahead
RuleEndElement. look(int k)
Lookahead
RuleRefElement. look(int k)
Lookahead
StringLiteralElement. look(int k)
Lookahead
SynPredBlock. look(int k)
Lookahead
TokenRangeElement. look(int k)
Lookahead
TokenRefElement. look(int k)
Lookahead
TreeElement. look(int k)
Lookahead
WildcardElement. look(int k)
Lookahead
ZeroOrMoreBlock. look(int k)
static Lookahead
Lookahead. of(int el)
Methods in antlr with parameters of type Lookahead Modifier and Type Method Description void
Lookahead. combineWith(Lookahead q)
protected java.lang.String
CppCodeGenerator. getLookaheadTestExpression(Lookahead[] look, int k)
protected java.lang.String
CSharpCodeGenerator. getLookaheadTestExpression(Lookahead[] look, int k)
protected java.lang.String
JavaCodeGenerator. getLookaheadTestExpression(Lookahead[] look, int k)
protected java.lang.String
PythonCodeGenerator. getLookaheadTestExpression(Lookahead[] look, int k)
Lookahead
Lookahead. intersection(Lookahead q)
What is the intersection of two lookahead depths? Only the Epsilon "bit" and bitset are considered.static boolean
LLkAnalyzer. lookaheadEquivForApproxAndFullAnalysis(Lookahead[] bset, int k)
If the first k-1 sets are singleton sets, the appoximate lookahead analysis is equivalent to full lookahead analysis.void
DiagnosticCodeGenerator. printSet(int depth, int k, Lookahead lookahead)
Format a lookahead or follow set.void
DocBookCodeGenerator. printSet(int depth, int k, Lookahead lookahead)
Format a lookahead or follow set.void
HTMLCodeGenerator. printSet(int depth, int k, Lookahead lookahead)
Format a lookahead or follow set.void
DefaultToolErrorHandler. warnAltAmbiguity(Grammar grammar, AlternativeBlock blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx1, int altIdx2)
Issue a warning about ambiguity between a alternatesvoid
ToolErrorHandler. warnAltAmbiguity(Grammar grammar, AlternativeBlock blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx1, int altIdx2)
Issue a warning about ambiguity between a alternatesvoid
DefaultToolErrorHandler. warnAltExitAmbiguity(Grammar grammar, BlockWithImpliedExitPath blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx)
Issue a warning about ambiguity between an alternate and exit path.void
ToolErrorHandler. warnAltExitAmbiguity(Grammar grammar, BlockWithImpliedExitPath blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx)
Issue a warning about ambiguity between an alternate and exit path.
-