Export LL1Analyzer.look

This commit is contained in:
Will Faught 2016-05-25 20:16:19 -07:00
parent a20b1abb97
commit 7080d04662
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ func NewATN(grammarType int, maxTokenType int) *ATN {
// restricted to tokens reachable staying within {@code s}'s rule. // restricted to tokens reachable staying within {@code s}'s rule.
func (a *ATN) NextTokensInContext(s ATNState, ctx RuleContext) *IntervalSet { func (a *ATN) NextTokensInContext(s ATNState, ctx RuleContext) *IntervalSet {
var anal = NewLL1Analyzer(a) var anal = NewLL1Analyzer(a)
var res = anal.look(s, nil, ctx) var res = anal.Look(s, nil, ctx)
return res return res
} }

View File

@ -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 // @return The set of tokens that can follow {@code s} in the ATN in the
// specified {@code ctx}. // 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 r = NewIntervalSet()
var seeThruPreds = true // ignore preds get all lookahead var seeThruPreds = true // ignore preds get all lookahead
var lookContext PredictionContext var lookContext PredictionContext