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:
Nathan Braswell
2013-10-26 15:05:42 -04:00
parent 752b04b71b
commit ebe6b3520a
3 changed files with 34 additions and 9 deletions

View File

@@ -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" ;