Skip to content

Commit 233f85f

Browse files
Anton ToduaAnton Todua
authored andcommitted
fix bug in right recognition
1 parent 6ce0f3f commit 233f85f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/OperationsExecuter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ static const char* operationNames[] = {
1010
"OT_SetLeftBorder",
1111
"OT_SetRightBorder",
1212
"OT_DecrementStackDepth",
13+
"OT_SaveLeftRight",
1314
"OT_MatchEmptyExpression",
1415
"OT_MatchLeftChar",
1516
"OT_MatchLeftLabel",
@@ -373,7 +374,7 @@ void COperationsExecuter::doFunctionBody()
373374
operation->tableIndex );
374375
break;
375376
case OT_MatchRightDuplicate_WV: // TTableIndex
376-
matchRightDuplicate_WV( operation->tableIndex );
377+
success = matchRightDuplicate_WV( operation->tableIndex );
377378
break;
378379
case OT_MatchRightDuplicateSaveToTable_WV: // TTableIndex
379380
success = matchRightDuplicateSaveToTable_WV(

tests/recognitionImpossible.ref

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
entry go
2+
go = <right /26/ '+' ( /1/ '*' /2/ ) '+' /1/ '*' /4/>
3+
4+
right
5+
R e1 wa '+' e2 (wa e3) e4 = e1 wa '+' e2 ( wa e3 ) e4

0 commit comments

Comments
 (0)