void () { doTest("1_2 0_1 012__34 0x1_2_3_4 0B0 0b0001_0010_0100_1000", """ INTEGER_LITERAL ('1_2') WHITE_SPACE (' ') INTEGER_LITERAL ('0_1') WHITE_SPACE (' ') INTEGER_LITERAL ('012__34') WHITE_SPACE (' ') INTEGER_LITERAL ('0x1_2_3_4') WHITE_SPACE (' ') INTEGER_LITERAL ('0B0') WHITE_SPACE (' ') INTEGER_LITERAL ('0b0001_0010_0100_1000')"""); doTest("1_2L 0_7l 012__34l 0x1_2_3_4L 0B0L 0b0001_0010_0100_1000l", """ LONG_LITERAL ('1_2L') WHITE_SPACE (' ') LONG_LITERAL ('0_7l') WHITE_SPACE (' ') LONG_LITERAL ('012__34l') WHITE_SPACE (' ') LONG_LITERAL ('0x1_2_3_4L') WHITE_SPACE (' ') LONG_LITERAL ('0B0L') WHITE_SPACE (' ') LONG_LITERAL ('0b0001_0010_0100_1000l')"""); doTest("1_0f 1e1_2f 2_2.f .3_3f 3.14_16f 6.022___137e+2_3f", """ FLOAT_LITERAL ('1_0f') WHITE_SPACE (' ') FLOAT_LITERAL ('1e1_2f') WHITE_SPACE (' ') FLOAT_LITERAL ('2_2.f') WHITE_SPACE (' ') FLOAT_LITERAL ('.3_3f') WHITE_SPACE (' ') FLOAT_LITERAL ('3.14_16f') WHITE_SPACE (' ') FLOAT_LITERAL ('6.022___137e+2_3f')"""); doTest("0_0d 1e1_1 2_2. .3_3 3.141_592 1e-9_9d 1e1__3_7", """ DOUBLE_LITERAL ('0_0d') WHITE_SPACE (' ') DOUBLE_LITERAL ('1e1_1') WHITE_SPACE (' ') DOUBLE_LITERAL ('2_2.') WHITE_SPACE (' ') DOUBLE_LITERAL ('.3_3') WHITE_SPACE (' ') DOUBLE_LITERAL ('3.141_592') WHITE_SPACE (' ') DOUBLE_LITERAL ('1e-9_9d') WHITE_SPACE (' ') DOUBLE_LITERAL ('1e1__3_7')"""); doTest("0xa_ap1_0f 0xa_b.p22F 0x.ab__cP0f 0xa_bc.d_efP0F", """ FLOAT_LITERAL ('0xa_ap1_0f') WHITE_SPACE (' ') FLOAT_LITERAL ('0xa_b.p22F') WHITE_SPACE (' ') FLOAT_LITERAL ('0x.ab__cP0f') WHITE_SPACE (' ') FLOAT_LITERAL ('0xa_bc.d_efP0F')"""); doTest("0xa_ap1 0xa_b.P1_2 0x.a_bcP1___23d 0xa_bc.de_fP1_234D", """ DOUBLE_LITERAL ('0xa_ap1') WHITE_SPACE (' ') DOUBLE_LITERAL ('0xa_b.P1_2') WHITE_SPACE (' ') DOUBLE_LITERAL ('0x.a_bcP1___23d') WHITE_SPACE (' ') DOUBLE_LITERAL ('0xa_bc.de_fP1_234D')"""); }