resetParserEntry method
void
resetParserEntry(
- int marker_kind
)
Implementation
void resetParserEntry(int marker_kind) {
markerKind = marker_kind;
if (stateStack.isEmpty) {
reallocateStacks();
} // make initial allocation
stateStackTop = 0;
stateStack[stateStackTop] = START_STATE;
if (action == null) {
action = IntTuple(1 << 20);
} else {
action!.reset();
}
//
// Indicate that we are going to run the incremental parser and that
// it's forbidden to use the utility functions to query the parser.
//
taking_actions = false;
if (marker_kind != 0) {
var sym = [markerKind];
parse(sym, 0);
}
}