[parser] foirbid calling auxiliary nodes with no arguments
This commit is contained in:
parent
97c6020414
commit
0d5e045671
@ -386,6 +386,9 @@ expr:
|
|||||||
/* Tuples */
|
/* Tuples */
|
||||||
| LPAREN expr_comma_list RPAREN { $2 }
|
| LPAREN expr_comma_list RPAREN { $2 }
|
||||||
/* Applications */
|
/* Applications */
|
||||||
|
| IDENT LPAREN RPAREN
|
||||||
|
{ raise (MyParsingError ("An application should come with arguments!",
|
||||||
|
current_location())) }
|
||||||
| IDENT LPAREN expr_comma_list RPAREN
|
| IDENT LPAREN expr_comma_list RPAREN
|
||||||
{ let name = $1 in
|
{ let name = $1 in
|
||||||
let node = fetch_node name in
|
let node = fetch_node name in
|
||||||
|
Loading…
Reference in New Issue
Block a user