This commit is contained in:
Eric Vergnaud 2015-08-26 23:40:41 +08:00
parent 980072b6b4
commit 295d235728
1 changed files with 1 additions and 3 deletions

View File

@ -533,9 +533,6 @@ class LexerATNSimulator(ATNSimulator):
# configuration containing an ATN rule stop state. Later, when
# traversing the DFA, we will know which rule to accept.
def addDFAState(self, configs):
# the lexer evaluates predicates on-the-fly; by this point configs
# should not contain any configurations with unevaluated predicates.
assert not configs.hasSemanticContext
proposed = DFAState(configs=configs)
firstConfigWithRuleStopState = None
@ -586,3 +583,4 @@ class LexerATNSimulator(ATNSimulator):
return "'" + chr(t) + "'"
LexerATNSimulator.ERROR = DFAState(0x7FFFFFFF, ATNConfigSet())