Method: ATN#nextTokensInContext

Defined in:
lib/antlr4/atn/ATN.rb

#nextTokensInContext(s, ctx) ⇒ Object

Compute the set of valid tokens that can occur starting in state s.

If {@code ctx} is null, the set of tokens will not include what can follow
the rule surrounding {@code s}. In other words, the set will be
restricted to tokens reachable staying within {@code s}'s rule.


41
42
43
44
45
# File 'lib/antlr4/atn/ATN.rb', line 41

def nextTokensInContext(s, ctx)
    require 'antlr4/LL1Analyzer'
    anal = LL1Analyzer.new(self)
    return anal.LOOK(s, ctx=ctx)
end