add exp parenthesis syntax (FIXME: shift/reduce conflict!)

This commit is contained in:
tali 2023-11-29 23:04:55 -05:00
parent fca1c8f557
commit 5a7ae5d5a4
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ singleexp:
| i = Int { Literal (Int i) }
| p = path { Path p }
| f = path; a = args { Call (f, a) }
| "("; e = exp; ")" { e }
path:
| x = Name { Var x }