basic:fixme: new parser ignores operator precedence

This commit is contained in:
minjaesong
2020-12-12 17:42:19 +09:00
parent 0d68c667f0
commit 2acdb4d0c1
2 changed files with 27 additions and 14 deletions

View File

@@ -16,6 +16,7 @@ expr = (* this basically blocks some funny attemps such as using DEFUN as anon f
lit
| "(" , expr , ")"
| "IF" , expr_sans_asgn , "THEN" , expr , ["ELSE" , expr]
(* at this point, if OP is found in paren-level 0, skip function_call *)
| function_call
| expr , op , expr
| op_uni , expr ;