Commit 6e367f67 authored by Neal Wu's avatar Neal Wu Committed by GitHub
Browse files

Merge pull request #1479 from chantera/master

improved ArcStandardTransitionSystem.PerformRightArc()
parents 3b15402f d229273e
......@@ -269,9 +269,7 @@ class ArcStandardTransitionSystem : public ParserTransitionSystem {
void PerformRightArc(ParserState *state, int label) const {
DCHECK(IsAllowedRightArc(*state));
int s0 = state->Pop();
int s1 = state->Pop();
state->AddArc(s0, s1, label);
state->Push(s1);
state->AddArc(s0, state->Top(), label);
}
// We are in a deterministic state when we either reached the end of the input
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment