From 68b72d866708f7ff0485ab815c52dec7274ee8b5 Mon Sep 17 00:00:00 2001 From: Nicolai Date: Wed, 20 Jul 2016 02:42:02 +0200 Subject: NumberLiteral: Allow 0x prefix --- libsolidity/grammar.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsolidity/grammar.txt') diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index 30fbd6b5..c70f56bd 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -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]* -- cgit v1.2.3