Skip to content

Commit 862839c

Browse files
authored
Update README.md
1 parent 770e4eb commit 862839c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ Allowed expressions must follow the following grammar:
3636
Expression = ([{"("}] SubExpr [{Operator [{"("}] SubExpr [{")"}]}] [{")"}] | {["("] ["{"] List [{";" List}] ["}"] [")"]})
3737
SubExpr = Token [{Operator Token}]
3838
Token = [{Unary}] Argument [(Operator | Function) ["("] [{Unary}] [Argument] [")"]]
39-
Argument = (List | Variable | Operand)
39+
Argument = (List | Variable | Operand | Literal)
4040
List = "{" ["{"] SubExpr [{";" SubExpr}] ["}"] "}"
4141
Unary = "-" | "+" | ~
42-
Operand = ({Digit} ["."] [{Digit}] ["E"("-" | "+"){Digit}] | (True | False) | "'"Alphabet"'")
42+
Literal = (Operand | "'"Alphabet"'")
43+
Operand = ({Digit} ["."] [{Digit}] ["E"("-" | "+"){Digit}] | (True | False))
4344
Variable = Alphabet [{Decimal}] [{(Digit | Alphabet)}]
4445
Alphabet = "A-Z" | "a-z"
4546
Decimal = "."

0 commit comments

Comments
 (0)