Skip to content
Snippets Groups Projects
Commit 15620163 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

macro processor: handle case of functions without arguments

parent 06b835c2
Branches
No related tags found
No related merge requests found
...@@ -248,7 +248,9 @@ symbol : NAME ...@@ -248,7 +248,9 @@ symbol : NAME
{ $$ = make_shared<Variable>($1, driver.env, @$); } { $$ = make_shared<Variable>($1, driver.env, @$); }
; ;
function : NAME LPAREN function_args RPAREN function : NAME LPAREN RPAREN
{ $$ = make_shared<Function>($1, vector<ExpressionPtr>(), driver.env, @$); }
| NAME LPAREN function_args RPAREN
{ $$ = make_shared<Function>($1, $3, driver.env, @$); } { $$ = make_shared<Function>($1, $3, driver.env, @$); }
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment