Merge pull request #1187 from renatahodovan/atnconfig_instantiate

Fix initialization of ATNConfig when computing SLL prediction termination condition.
This commit is contained in:
Terence Parr 2016-11-19 14:21:22 -08:00 committed by GitHub
commit db5d306285
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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