diff options
author | sanine-a <sanine.not@pm.me> | 2023-05-22 14:58:52 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-05-22 14:58:52 -0500 |
commit | 9e8703d07e2e49d14e3d2092d77f8f7e75ee7e04 (patch) | |
tree | 548572958e4f368d7d1dbe0144c9e27a160c2ec3 /src/parser/grammar.js | |
parent | f2a515a940ea5e66c9fbc9669e6293ae32b7041a (diff) |
fix line labels ordering
Diffstat (limited to 'src/parser/grammar.js')
-rw-r--r-- | src/parser/grammar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/grammar.js b/src/parser/grammar.js index 21f6b89..f51d7f6 100644 --- a/src/parser/grammar.js +++ b/src/parser/grammar.js @@ -84,10 +84,10 @@ performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* actio var $0 = $$.length - 1; switch (yystate) { case 1: - yy.start = 0; return $$[$0-2]; + return { start: 0, program: $$[$0-2] }; break; case 2: - yy.start = yy.getLabel($$[$0-1]); return $$[$0-3]; + return { start: yy.getLabel($$[$0-1]), program: $$[$0-3] }; break; case 7: |