aboutsummaryrefslogtreecommitdiff
path: root/c.y
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-01-05 23:42:24 +0100
committertomsmeding <tom.smeding@gmail.com>2018-01-05 23:42:24 +0100
commit3272b5d83d2e2167eed24748557df88bd66584ee (patch)
tree6b8f1574f6d6a44e11b74903516286f6249cb0b7 /c.y
parenta298cb75c4f586b83b304c7dc66cb555693ea1b8 (diff)
There's actually a chance that, correctly stringified, this will work
Diffstat (limited to 'c.y')
-rw-r--r--c.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/c.y b/c.y
index 5aafe26..ee98fe7 100644
--- a/c.y
+++ b/c.y
@@ -142,8 +142,11 @@ matched_statement:
other_statement:
var_decl | expression ';' | block
+ | RETURN ';' {
+ $$ = node_make_0(N_RETURN);
+ }
| RETURN expression ';' {
- $$ = node_make_1(N_RETURN, $2);
+ $$ = node_make_1(N_RETURNV, $2);
} ;
expression: atom_expr