diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-06 01:05:21 +0200 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-06 01:05:57 +0200 |
commit | 89bac537165bf262594cca343cb45e16a2167145 (patch) | |
tree | f72a80f1624b12fa3b27c6dc6feedc3e06594e20 /src/parser.y | |
parent | aec19e55ca32f68536a550f100d3f058b8a93c02 (diff) | |
download | fwd-89bac537165bf262594cca343cb45e16a2167145.tar.gz fwd-89bac537165bf262594cca343cb45e16a2167145.zip |
implement move checking furthermvcheck
+ Enough that examples still compile, but missing references etc.
Diffstat (limited to 'src/parser.y')
-rw-r--r-- | src/parser.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y index 9f532b9..dd177d0 100644 --- a/src/parser.y +++ b/src/parser.y @@ -53,6 +53,7 @@ %token PLUS "+" %token XOR "^" %token AND "&" +%token BAR "|" %token TILDE "~" %token LT "<" %token GT ">" @@ -183,6 +184,7 @@ var rev_vars : rev_vars "," var { $$ = $3; $$->n = $1; } + | rev_vars "|" var { $$ = $3; $$->n = $1; opt_group($1, $3); } | var vars @@ -230,7 +232,7 @@ type | "*" type { $$ = tgen_ptr($2, src_loc(@$)); } rev_types - : rev_types "," type { $$ = $3; $3->n = $$; } + : rev_types "," type { $$ = $3; $$->n = $1; } | type types |