forked from jasder/antlr
Merge pull request #1187 from renatahodovan/atnconfig_instantiate
Fix initialization of ATNConfig when computing SLL prediction termination condition.
This commit is contained in:
commit
db5d306285
|
@ -213,7 +213,7 @@ class PredictionMode(object):
|
|||
# dup configs, tossing out semantic predicates
|
||||
dup = ATNConfigSet()
|
||||
for c in configs:
|
||||
c = ATNConfig(c,SemanticContext.NONE)
|
||||
c = ATNConfig(config=c, semantic=SemanticContext.NONE)
|
||||
dup.add(c)
|
||||
configs = dup
|
||||
# now we have combined contexts for configs with dissimilar preds
|
||||
|
|
|
@ -216,7 +216,7 @@ class PredictionMode(Enum):
|
|||
# dup configs, tossing out semantic predicates
|
||||
dup = ATNConfigSet()
|
||||
for c in configs:
|
||||
c = ATNConfig(c,SemanticContext.NONE)
|
||||
c = ATNConfig(config=c, semantic=SemanticContext.NONE)
|
||||
dup.add(c)
|
||||
configs = dup
|
||||
# now we have combined contexts for configs with dissimilar preds
|
||||
|
|
Loading…
Reference in New Issue