forked from jasder/antlr
Woops
This commit is contained in:
parent
68ca3b77c8
commit
56589c8029
|
@ -368,7 +368,7 @@ public class ATNDeserializer {
|
|||
int ndecisions = toInt(data[p++]);
|
||||
for (int i=1; i<=ndecisions; i++) {
|
||||
int s = toInt(data[p++]);
|
||||
DecisionState decState = atn.states.get(s);
|
||||
DecisionState decState = (DecisionState)atn.states.get(s);
|
||||
atn.decisionToState.add(decState);
|
||||
decState.decision = i-1;
|
||||
}
|
||||
|
@ -736,4 +736,4 @@ public class ATNDeserializer {
|
|||
throw new IllegalArgumentException(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -570,7 +570,7 @@ public class ParserATNSimulator extends ATNSimulator {
|
|||
* {@code t}, or {@code null} if the target state for this edge is not
|
||||
* already cached
|
||||
*/
|
||||
protected DFAState getExistingTargetState( previousD, int t) {
|
||||
protected DFAState getExistingTargetState(DFAState previousD, int t) {
|
||||
DFAState[] edges = previousD.edges;
|
||||
if (edges == null || t + 1 < 0 || t + 1 >= edges.length) {
|
||||
return null;
|
||||
|
@ -2039,4 +2039,4 @@ public class ParserATNSimulator extends ATNSimulator {
|
|||
public Parser getParser() {
|
||||
return parser;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue