update grammar and test file

This commit is contained in:
acereca 2023-04-12 21:46:06 +02:00
parent e4fa4ea905
commit 5b12d75c47
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ cstyle_list = @{ token ~ lisp_list}
list = { (cstyle_list | lisp_list | lazy_list) }
assign = {token ~ "=" ~ (inline_expr | list | token)}
assign = {token ~ "=" ~ (inline_expr | list | token | literal)}
inline_operand = _{(list | token | literal)}
inline_operator = {("-" | "+" | "/" | "*")}
inline_expr = {inline_operand ~ (inline_operator ~ inline_operand)+}