Commit 15620163 authored by Houtan Bastani's avatar Houtan Bastani

macro processor: handle case of functions without arguments

parent 06b835c2
Pipeline #1463 passed with stage
in 1 minute and 26 seconds
...@@ -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, @$); }
; ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment