Export LL1Analyzer.look
This commit is contained in:
parent
a20b1abb97
commit
7080d04662
|
@ -62,7 +62,7 @@ func NewATN(grammarType int, maxTokenType int) *ATN {
|
|||
// restricted to tokens reachable staying within {@code s}'s rule.
|
||||
func (a *ATN) NextTokensInContext(s ATNState, ctx RuleContext) *IntervalSet {
|
||||
var anal = NewLL1Analyzer(a)
|
||||
var res = anal.look(s, nil, ctx)
|
||||
var res = anal.Look(s, nil, ctx)
|
||||
return res
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ func (la *LL1Analyzer) getDecisionLookahead(s ATNState) []*IntervalSet {
|
|||
// @return The set of tokens that can follow {@code s} in the ATN in the
|
||||
// specified {@code ctx}.
|
||||
///
|
||||
func (la *LL1Analyzer) look(s, stopState ATNState, ctx RuleContext) *IntervalSet {
|
||||
func (la *LL1Analyzer) Look(s, stopState ATNState, ctx RuleContext) *IntervalSet {
|
||||
var r = NewIntervalSet()
|
||||
var seeThruPreds = true // ignore preds get all lookahead
|
||||
var lookContext PredictionContext
|
||||
|
|
Loading…
Reference in New Issue