void () { doTest("0 1234 01234 0x1234", """ INTEGER_LITERAL ('0') WHITE_SPACE (' ') INTEGER_LITERAL ('1234') WHITE_SPACE (' ') INTEGER_LITERAL ('01234') WHITE_SPACE (' ') INTEGER_LITERAL ('0x1234')"""); doTest("0L 1234l 01234L 0x1234l", """ LONG_LITERAL ('0L') WHITE_SPACE (' ') LONG_LITERAL ('1234l') WHITE_SPACE (' ') LONG_LITERAL ('01234L') WHITE_SPACE (' ') LONG_LITERAL ('0x1234l')"""); doTest("0f 1e1f 2.f .3f 0f 3.14f 6.022137e+23f", """ FLOAT_LITERAL ('0f') WHITE_SPACE (' ') FLOAT_LITERAL ('1e1f') WHITE_SPACE (' ') FLOAT_LITERAL ('2.f') WHITE_SPACE (' ') FLOAT_LITERAL ('.3f') WHITE_SPACE (' ') FLOAT_LITERAL ('0f') WHITE_SPACE (' ') FLOAT_LITERAL ('3.14f') WHITE_SPACE (' ') FLOAT_LITERAL ('6.022137e+23f')"""); doTest("0d 1e1 2. .3 0.0 3.14 1e-9d 1e137", """ DOUBLE_LITERAL ('0d') WHITE_SPACE (' ') DOUBLE_LITERAL ('1e1') WHITE_SPACE (' ') DOUBLE_LITERAL ('2.') WHITE_SPACE (' ') DOUBLE_LITERAL ('.3') WHITE_SPACE (' ') DOUBLE_LITERAL ('0.0') WHITE_SPACE (' ') DOUBLE_LITERAL ('3.14') WHITE_SPACE (' ') DOUBLE_LITERAL ('1e-9d') WHITE_SPACE (' ') DOUBLE_LITERAL ('1e137')"""); doTest(". e0 x1 ax .e .p 08 .0e .0f", """ DOT ('.') WHITE_SPACE (' ') IDENTIFIER ('e0') WHITE_SPACE (' ') IDENTIFIER ('x1') WHITE_SPACE (' ') IDENTIFIER ('ax') WHITE_SPACE (' ') DOT ('.') IDENTIFIER ('e') WHITE_SPACE (' ') DOT ('.') IDENTIFIER ('p') WHITE_SPACE (' ') INTEGER_LITERAL ('08') WHITE_SPACE (' ') DOUBLE_LITERAL ('.0e') WHITE_SPACE (' ') FLOAT_LITERAL ('.0f')"""); }