NumberLiteral: Allow 0x prefix

This commit is contained in:
Nicolai 2016-07-20 02:42:02 +02:00
parent 6f7d8fb65b
commit 68b72d8667

View File

@ -55,7 +55,7 @@ IndexAccess = Expression '[' Expression? ']'
PrimaryExpression = Identifier | BooleanLiteral | NumberLiteral | StringLiteral | ElementaryTypeName | '(' Expression ')'
BooleanLiteral = 'true' | 'false'
NumberLiteral = [0-9]+
NumberLiteral = '0x'? [0-9]+
StringLiteral = '"' [a-zA-Z_0-9]* '"'
Identifier = [a-zA-Z_] [a-zA-Z_0-9]*