# HG changeset patch # User aziz # Date 1183292282 0 # Node ID 7eb83dd38901822bc264e8bff9fa8f504838c055 # Parent 996065105910a90fc2c2f777e35c4b2407b0e7dc - Simplified suffix rule and added a few more numbers to unittest. diff -r 996065105910 -r 7eb83dd38901 trunk/src/Lexer.d --- a/trunk/src/Lexer.d Sun Jul 01 10:58:03 2007 +0000 +++ b/trunk/src/Lexer.d Sun Jul 01 12:18:02 2007 +0000 @@ -923,7 +923,7 @@ Hex:= 0[xX] HexDigits Bin:= 0[bB][01_]+ Oct:= 0[0-7_]+ - Suffix:= (L|[uU]|L[uU]|[uU]L)? + Suffix:= (L[uU]?|[uU]L?) HexDigits:= [0-9a-zA-Z_]+ Invalid: "0b_", "0x_", "._" @@ -1579,7 +1579,11 @@ unittest { // Numbers unittest - // 0L 0ULi 0_L 0_UL 0_Fi 0_e2 0_F 0_i 0x0U 0x0p2 + // 0L 0ULi 0_L 0_UL 0x0U 0x0p2 0_Fi 0_e2 0_F 0_i + // 0u 0U 0uL 0UL 0L 0LU 0Lu + // 0Li 0f 0F 0fi 0Fi 0i + // 0b_1_LU 0b1000u + // 0x232Lu } /// ASCII character properties table. diff -r 996065105910 -r 7eb83dd38901 trunk/src/Parser.d --- a/trunk/src/Parser.d Sun Jul 01 10:58:03 2007 +0000 +++ b/trunk/src/Parser.d Sun Jul 01 12:18:02 2007 +0000 @@ -4,6 +4,21 @@ +/ module Parser; +enum STC +{ + Abstract, + Auto, + Const, + Deprecated, + Extern, + Final, + Invariant, + Override, + Scope, + Static, + Synchronized +} + class Parser {