Allow empty parens for function0.

This commit is contained in:
Lewis Van Winkle
2016-02-23 17:29:03 -06:00
parent d9138d4bff
commit 681fb9aa0f
2 changed files with 10 additions and 2 deletions

View File

@@ -219,7 +219,7 @@ TinyExpr parses the following grammar:
<term> = <factor> {("*" | "/" | "%") <factor>}
<factor> = <power> {"^" <power>}
<power> = {("-" | "+")} <base>
<base> = <constant> | <variable> | <function-1> <power> | <function-2> "(" <expr> "," <expr> ")" | "(" <list> ")"
<base> = <constant> | <variable> | <function-0> {"(" ")"} | <function-1> <power> | <function-2> "(" <expr> "," <expr> ")" | "(" <list> ")"
In addition, whitespace between tokens is ignored.