Antlr4.Runtime.Atn.LL1Analyzer.Look C# (CSharp) Method

Look() private method

private Look ( ATNState s, ATNState stopState, RuleContext ctx ) : IntervalSet
s ATNState
stopState ATNState
ctx RuleContext
return Antlr4.Runtime.Misc.IntervalSet
        public virtual IntervalSet Look(ATNState s, ATNState stopState, RuleContext ctx)
        {
            IntervalSet r = new IntervalSet();
            bool seeThruPreds = true;
            PredictionContext lookContext = ctx != null ? PredictionContext.FromRuleContext(s.atn, ctx) : null;
            Look(s, stopState, lookContext, r, new HashSet<ATNConfig>(), new BitSet(), seeThruPreds, true);
            return r;
        }

Same methods

LL1Analyzer::Look ( ATNState s, RuleContext ctx ) : IntervalSet
LL1Analyzer::Look ( ATNState s, ATNState stopState, PredictionContext ctx, IntervalSet look, HashSet lookBusy, BitSet calledRuleStack, bool seeThruPreds, bool addEOF ) : void

Usage Example

示例#1
0
        public virtual IntervalSet NextTokens(ATNState s, RuleContext ctx)
        {
            LL1Analyzer anal = new LL1Analyzer(this);

            IntervalSet next = anal.Look(s, ctx);

            return(next);
        }
All Usage Examples Of Antlr4.Runtime.Atn.LL1Analyzer::Look