# file : build2/cc/lexer+number.test.testscript # copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file # Test numbers. # $* <'1' >'' $* <'.1' >'' $* <'1.' >'' $* <'0b101' >'' $* <'0123' >'' $* <'0X12AB' >'' $* <'1e10' >'' $* <'1E+10' >'' $* <'0x1.p10' >'' $* <'0x1.P-10' >'' $* <"123'456" >'' $* <"0xff00'00ff" >'' $* <'123f' >'' $* <'123UL' >'' $* <'123_X' >'' : separate-punctuation : $* <'123;' >>EOO ';' EOO : separate-plus-minus : $* <'1.0_a+2.0' >>EOO EOO : separate-whitespace : $* <'123 abc' >>EOO 'abc' EOO