diff options
author | Eugene Sandulenko | 2016-06-16 15:00:46 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 4b56951d3038836c32d8a1a0db3da856a720f1fc (patch) | |
tree | 4d10a17f4b5fd820b6251226a8a4a882e3f1f60c /engines/director/lingo/lingo-gr.cpp | |
parent | d90a8605d238786d53e645743d96b8c584ca3fb6 (diff) | |
download | scummvm-rg350-4b56951d3038836c32d8a1a0db3da856a720f1fc.tar.gz scummvm-rg350-4b56951d3038836c32d8a1a0db3da856a720f1fc.tar.bz2 scummvm-rg350-4b56951d3038836c32d8a1a0db3da856a720f1fc.zip |
DIRECTOR: Started work on converting Lingo into compiler
Diffstat (limited to 'engines/director/lingo/lingo-gr.cpp')
-rw-r--r-- | engines/director/lingo/lingo-gr.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp index 343817c2b1..c34a25f839 100644 --- a/engines/director/lingo/lingo-gr.cpp +++ b/engines/director/lingo/lingo-gr.cpp @@ -1374,7 +1374,7 @@ yyreduce: case 6: #line 74 "engines/director/lingo/lingo-gr.y" - { (yyval.i) = (yyvsp[(1) - (1)].i); ;} + { (yyval.i) = g_lingo->code2(g_lingo->func_constpush, (inst)(yyvsp[(1) - (1)].i)); ;} break; case 7: @@ -1384,22 +1384,22 @@ yyreduce: case 8: #line 76 "engines/director/lingo/lingo-gr.y" - { (yyval.i) = (yyvsp[(1) - (3)].i) + (yyvsp[(3) - (3)].i); ;} + { g_lingo->code1(g_lingo->func_add); ;} break; case 9: #line 77 "engines/director/lingo/lingo-gr.y" - { (yyval.i) = (yyvsp[(1) - (3)].i) - (yyvsp[(3) - (3)].i); ;} + { g_lingo->code1(g_lingo->func_sub); ;} break; case 10: #line 78 "engines/director/lingo/lingo-gr.y" - { (yyval.i) = (yyvsp[(1) - (3)].i) * (yyvsp[(3) - (3)].i); ;} + { g_lingo->code1(g_lingo->func_mul); ;} break; case 11: #line 79 "engines/director/lingo/lingo-gr.y" - { (yyval.i) = (yyvsp[(1) - (3)].i) / (yyvsp[(3) - (3)].i); ;} + { g_lingo->code1(g_lingo->func_div); ;} break; case 12: @@ -1409,7 +1409,7 @@ yyreduce: case 13: #line 81 "engines/director/lingo/lingo-gr.y" - { (yyval.i) = -(yyvsp[(2) - (2)].i); ;} + { (yyval.i) = (yyvsp[(2) - (2)].i); g_lingo->code1(g_lingo->func_negate); ;} break; case 14: |