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. cacheprotected Lookahead[]RuleBlock. cacheprotected Lookahead[]RuleEndElement. cacheprotected Lookahead[]BlockWithImpliedExitPath. exitCachelookahead to bypass block; set by deterministic().Methods in antlr that return Lookahead Modifier and Type Method Description LookaheadLLkAnalyzer. FOLLOW(int k, RuleEndElement end)Compute the lookahead set of whatever follows references to the rule associated witht the FOLLOW block.LookaheadLLkGrammarAnalyzer. FOLLOW(int k, RuleEndElement end)LookaheadLookahead. intersection(Lookahead q)What is the intersection of two lookahead depths? Only the Epsilon "bit" and bitset are considered.LookaheadActionElement. look(int k)LookaheadAlternativeBlock. look(int k)LookaheadBlockEndElement. look(int k)LookaheadCharLiteralElement. look(int k)LookaheadCharRangeElement. look(int k)LookaheadGrammarElement. look(int k)LookaheadLLkAnalyzer. look(int k, ActionElement action)Actions are ignoredLookaheadLLkAnalyzer. look(int k, AlternativeBlock blk)Combine the lookahead computed for each alternativeLookaheadLLkAnalyzer. look(int k, BlockEndElement end)Compute what follows this place-holder node and possibly what begins the associated loop unless the node is locked.LookaheadLLkAnalyzer. look(int k, CharLiteralElement atom)Return this char as the lookahead if k=1.LookaheadLLkAnalyzer. look(int k, CharRangeElement r)LookaheadLLkAnalyzer. look(int k, GrammarAtom atom)LookaheadLLkAnalyzer. 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.LookaheadLLkAnalyzer. look(int k, RuleBlock blk)Combine the lookahead computed for each alternative.LookaheadLLkAnalyzer. look(int k, RuleEndElement end)If not locked or noFOLLOW set, compute FOLLOW of a rule.LookaheadLLkAnalyzer. look(int k, RuleRefElement rr)Compute the lookahead contributed by a rule reference.LookaheadLLkAnalyzer. look(int k, StringLiteralElement atom)LookaheadLLkAnalyzer. look(int k, SynPredBlock blk)The lookahead of a (...)=> block is the lookahead of what follows the block.LookaheadLLkAnalyzer. look(int k, TokenRangeElement r)LookaheadLLkAnalyzer. look(int k, TreeElement t)LookaheadLLkAnalyzer. look(int k, WildcardElement wc)LookaheadLLkAnalyzer. look(int k, ZeroOrMoreBlock blk)The (...)* element is the combined lookahead of the alternatives and what can follow the loop.LookaheadLLkAnalyzer. look(int k, java.lang.String rule)Compute the combined lookahead for all productions of a rule.LookaheadLLkGrammarAnalyzer. look(int k, ActionElement action)LookaheadLLkGrammarAnalyzer. look(int k, AlternativeBlock blk)LookaheadLLkGrammarAnalyzer. look(int k, BlockEndElement end)LookaheadLLkGrammarAnalyzer. look(int k, CharLiteralElement atom)LookaheadLLkGrammarAnalyzer. look(int k, CharRangeElement end)LookaheadLLkGrammarAnalyzer. look(int k, GrammarAtom atom)LookaheadLLkGrammarAnalyzer. look(int k, OneOrMoreBlock blk)LookaheadLLkGrammarAnalyzer. look(int k, RuleBlock blk)LookaheadLLkGrammarAnalyzer. look(int k, RuleEndElement end)LookaheadLLkGrammarAnalyzer. look(int k, RuleRefElement rr)LookaheadLLkGrammarAnalyzer. look(int k, StringLiteralElement atom)LookaheadLLkGrammarAnalyzer. look(int k, SynPredBlock blk)LookaheadLLkGrammarAnalyzer. look(int k, TokenRangeElement end)LookaheadLLkGrammarAnalyzer. look(int k, TreeElement end)LookaheadLLkGrammarAnalyzer. look(int k, WildcardElement wc)LookaheadLLkGrammarAnalyzer. look(int k, ZeroOrMoreBlock blk)LookaheadLLkGrammarAnalyzer. look(int k, java.lang.String rule)LookaheadOneOrMoreBlock. look(int k)LookaheadRuleBlock. look(int k)LookaheadRuleEndElement. look(int k)LookaheadRuleRefElement. look(int k)LookaheadStringLiteralElement. look(int k)LookaheadSynPredBlock. look(int k)LookaheadTokenRangeElement. look(int k)LookaheadTokenRefElement. look(int k)LookaheadTreeElement. look(int k)LookaheadWildcardElement. look(int k)LookaheadZeroOrMoreBlock. look(int k)static LookaheadLookahead. of(int el)Methods in antlr with parameters of type Lookahead Modifier and Type Method Description voidLookahead. combineWith(Lookahead q)protected java.lang.StringCppCodeGenerator. getLookaheadTestExpression(Lookahead[] look, int k)protected java.lang.StringCSharpCodeGenerator. getLookaheadTestExpression(Lookahead[] look, int k)protected java.lang.StringJavaCodeGenerator. getLookaheadTestExpression(Lookahead[] look, int k)protected java.lang.StringPythonCodeGenerator. getLookaheadTestExpression(Lookahead[] look, int k)LookaheadLookahead. intersection(Lookahead q)What is the intersection of two lookahead depths? Only the Epsilon "bit" and bitset are considered.static booleanLLkAnalyzer. lookaheadEquivForApproxAndFullAnalysis(Lookahead[] bset, int k)If the first k-1 sets are singleton sets, the appoximate lookahead analysis is equivalent to full lookahead analysis.voidDiagnosticCodeGenerator. printSet(int depth, int k, Lookahead lookahead)Format a lookahead or follow set.voidDocBookCodeGenerator. printSet(int depth, int k, Lookahead lookahead)Format a lookahead or follow set.voidHTMLCodeGenerator. printSet(int depth, int k, Lookahead lookahead)Format a lookahead or follow set.voidDefaultToolErrorHandler. warnAltAmbiguity(Grammar grammar, AlternativeBlock blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx1, int altIdx2)Issue a warning about ambiguity between a alternatesvoidToolErrorHandler. warnAltAmbiguity(Grammar grammar, AlternativeBlock blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx1, int altIdx2)Issue a warning about ambiguity between a alternatesvoidDefaultToolErrorHandler. warnAltExitAmbiguity(Grammar grammar, BlockWithImpliedExitPath blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx)Issue a warning about ambiguity between an alternate and exit path.voidToolErrorHandler. warnAltExitAmbiguity(Grammar grammar, BlockWithImpliedExitPath blk, boolean lexicalAnalysis, int depth, Lookahead[] sets, int altIdx)Issue a warning about ambiguity between an alternate and exit path.
-