diff options
Diffstat (limited to 'src/parser/grammar.jison')
-rw-r--r-- | src/parser/grammar.jison | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/grammar.jison b/src/parser/grammar.jison index 2f5b30a..83255e0 100644 --- a/src/parser/grammar.jison +++ b/src/parser/grammar.jison @@ -51,8 +51,8 @@ %% program - : lines END coda { yy.start = 0; return $lines; } - | lines END label coda { yy.start = yy.getLabel($label); return $lines; } + : lines END coda { return { start: 0, program: $lines }; } + | lines END label coda { return { start: yy.getLabel($label), program: $lines }; } ; coda |