[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9424]
This commit is contained in:
parrt 2011-11-22 12:30:53 -08:00
parent f3b0ffb8b2
commit 45dc683a91
1 changed files with 7 additions and 3 deletions

View File

@ -30,8 +30,11 @@
package org.antlr.v4.runtime.atn;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.dfa.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.dfa.DFAState;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.Nullable;
import org.antlr.v4.runtime.misc.OrderedHashSet;
/** "dup" of ParserInterpreter */
public class LexerATNSimulator extends ATNSimulator {
@ -161,7 +164,8 @@ public class LexerATNSimulator extends ATNSimulator {
int predict = exec(input, s0_closure);
if ( debug ) System.out.println("DFA after matchATN: "+dfa[old_mode].toLexerString());
return predict;
} finally {
}
finally {
if (mark >= 0) {
input.release(mark);
}