Skip to content

Commit

Permalink
fix bug in right recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Todua authored and Anton Todua committed Dec 22, 2019
1 parent 6ce0f3f commit 233f85f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OperationsExecuter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ static const char* operationNames[] = {
"OT_SetLeftBorder",
"OT_SetRightBorder",
"OT_DecrementStackDepth",
"OT_SaveLeftRight",
"OT_MatchEmptyExpression",
"OT_MatchLeftChar",
"OT_MatchLeftLabel",
Expand Down Expand Up @@ -373,7 +374,7 @@ void COperationsExecuter::doFunctionBody()
operation->tableIndex );
break;
case OT_MatchRightDuplicate_WV: // TTableIndex
matchRightDuplicate_WV( operation->tableIndex );
success = matchRightDuplicate_WV( operation->tableIndex );
break;
case OT_MatchRightDuplicateSaveToTable_WV: // TTableIndex
success = matchRightDuplicateSaveToTable_WV(
Expand Down
5 changes: 5 additions & 0 deletions tests/recognitionImpossible.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
entry go
go = <right /26/ '+' ( /1/ '*' /2/ ) '+' /1/ '*' /4/>

right
R e1 wa '+' e2 (wa e3) e4 = e1 wa '+' e2 ( wa e3 ) e4

0 comments on commit 233f85f

Please sign in to comment.