aboutsummaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-03-25 22:35:40 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-03-25 22:35:40 +0200
commitbb261ad231c3683a36d516c4caf9b2a06ce0145f (patch)
tree41ba1da4296e4c90aaffc56e25207b179d6c0822 /src/parser.y
parent542be69b2a89eb35f87e208018a7c0cc4c2aac04 (diff)
downloadek-bb261ad231c3683a36d516c4caf9b2a06ce0145f.tar.gz
ek-bb261ad231c3683a36d516c4caf9b2a06ce0145f.zip
slightly refactor ast
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser.y b/src/parser.y
index 0132283..665a6a0 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -138,7 +138,7 @@
%nterm <node> embed param_decl union struct struct_list struct_elem
%nterm <node> top_if const_if const_for defer goto assign
%nterm <node> struct_construct struct_inits struct_init cond
-%nterm <node> generic generic_list union_struct
+%nterm <node> generic generic_list
%destructor {} FLOAT INT STRING ID
%destructor { destroy_ast_tree($$); } <*>
@@ -235,7 +235,6 @@ defer: "defer" "(" expr ")" { $$ = gen_defer($3); }
/* TODO: concatenate multiple strings together */
expr: id { $$ = $1; }
| expr "." id { $$ = gen_dot($1, $3); }
- | id "##" id { $$ = gen_paste($1, $3); }
| "..." id { $$ = $2; }
| "@" { $$ = gen_last(); }
| INT { $$ = gen_int($1); $$->loc = to_src_loc(&yylloc); }