@Override
protected DFAState getExistingTargetState(DFAState previousD, int t) {
// this method is called after each time the input position advances
// during SLL prediction
_sllStopIndex = _input.index();
DFAState existingTargetState = super.getExistingTargetState(previousD, t);
if ( existingTargetState!=null ) {
decisions[currentDecision].SLL_DFATransitions++; // count only if we transition over a DFA state
if ( existingTargetState==ERROR ) {
decisions[currentDecision].errors.add(
new ErrorInfo(currentDecision, previousD.configs, _input, _startIndex, _sllStopIndex, false)
);
}
}
currentState = existingTargetState;
return existingTargetState;
}
ProfilingATNSimulator.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:Scratch-ApuC
作者:
评论列表
文章目录