booleans are values

master
Jordan Orelli 10 years ago
parent 3de8cc6407
commit d4068eff9f

@ -5,7 +5,7 @@ Variable ::= "@" Identifier
Bare_String ::= (GraphicChar | ("\" Char)) + Bare_String ::= (GraphicChar | ("\" Char)) +
Quoted_String ::= '"' ([^"\] | "\" Char) * '"' Quoted_String ::= '"' ([^"\] | "\" Char) * '"'
| "'" ([^'\] | "\" Char) * "'" | "'" ([^'\] | "\" Char) * "'"
Comment ::= '#' GraphicChar + Comment ::= "#" GraphicChar +
Integer ::= [+-] ? ([1-9] Digit + | [0]) Integer ::= [+-] ? ([1-9] Digit + | [0])
Hex ::= [+-] ? "0" [xX] (Digit | [a-fA-F]) + Hex ::= [+-] ? "0" [xX] (Digit | [a-fA-F]) +
@ -13,10 +13,11 @@ Octal ::= [+-] ? "0" [0-7] +
Float ::= [+-]? Digit+ ("." Digit +)? ([eE] [+-] ? Digit +)? Float ::= [+-]? Digit+ ("." Digit +)? ([eE] [+-] ? Digit +)?
Complex ::= ((Float | Integer) [+-])? (Float | Integer) "i" Complex ::= ((Float | Integer) [+-])? (Float | Integer) "i"
Duration ::= [+-] ? (Digit + ("." Digit +) ("ns" | "us" | "µs" | "ms" | "s" | "m" | "h")) + Duration ::= [+-] ? (Digit + ("." Digit +) ("ns" | "us" | "µs" | "ms" | "s" | "m" | "h")) +
Boolean ::= "true" | "false"
Numer ::= Integer | Hex | Octal | Float Numer ::= Integer | Hex | Octal | Float
Object ::= "{" (Identifier ":" Value) + "}" Object ::= "{" (Identifier ":" Value) + "}"
List ::= "[" Value + "]" List ::= "[" Value + "]"
Value ::= String | Number | Duration | Variable | Object | List Value ::= String | Number | Boolean | Duration | Variable | Object | List
Heredoc ::= "<<" Identifier "\n" (Char | "\n") + "\n" "Identifier (same as opening identifier)" "\n" Heredoc ::= "<<" Identifier "\n" (Char | "\n") + "\n" "Identifier (same as opening identifier)" "\n"
Letter ::= "a Unicode letter, category L" Letter ::= "a Unicode letter, category L"
@ -28,4 +29,4 @@ Punct ::= "a Unicode punctuation glyph, category P, excluding those described as
Terminal ::= "[" | "]" | ";" | ":" | "{" | "}" | "\" | "#" | "\n" Terminal ::= "[" | "]" | ";" | ":" | "{" | "}" | "\" | "#" | "\n"
PrintChar ::= Letter | Mark | Number | Symbol | Punct PrintChar ::= Letter | Mark | Number | Symbol | Punct
GraphicChar ::= PrintChar | Space GraphicChar ::= PrintChar | Space
Char ::= GraphicChar | Terminal Char ::= GraphicChar | Terminal
Loading…
Cancel
Save