More AST work. Getting close to fully transforming language as specified by current grammer. (which is a subset of what it will become)
This commit is contained in:
@@ -52,9 +52,9 @@ number = integer | float | double ;
|
||||
assignment_statement = identifier WS "=" WS expression ;
|
||||
|
||||
alphanumeric = alphanumeric numeric | alphanumeric alpha | numeric | alpha ;
|
||||
hexadecimal = sign WS "0x(1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)+" ;
|
||||
hexadecimal = "0x(1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)+" ;
|
||||
sign = "\+|-" WS | ;
|
||||
integer = sign numeric | hexadecimal | "null" ;
|
||||
integer = sign numeric | sign hexadecimal | "null" ;
|
||||
float = sign numeric "." numeric "f" ;
|
||||
double = sign numeric "." numeric | sign numeric "." numeric "d" ;
|
||||
bool = "true" | "false" | "True" | "False" ;
|
||||
|
||||
Reference in New Issue
Block a user