Ticket #139: ticket139.patch
File ticket139.patch, 1.3 KB (added by eric.sellon, 16 years ago) |
---|
-
Source/CobraTokenizer.cobra
117 117 r'INTEGER_LIT_UNSIGN \d[\d_]*(u|_u)(8|16|32|64)?', 118 118 r'INTEGER_LIT \d[\d_]*', 119 119 120 r'INT_SIZE int[0-9]+ ',121 r'UINT_SIZE uint[0-9]+ ',122 r'FLOAT_SIZE float[0-9]+ ',120 r'INT_SIZE int[0-9]+(?=[^A-Za-z0-9_])', 121 r'UINT_SIZE uint[0-9]+(?=[^A-Za-z0-9_])', 122 r'FLOAT_SIZE float[0-9]+(?=[^A-Za-z0-9_])', 123 123 124 124 r"CHAR_LIT_SINGLE c'\\?.'", 125 125 r'CHAR_LIT_DOUBLE c"\\?."', -
Tests/100-basics/043-sad_var_name_test.cobra
1 class Int32Runner 2 3 def main 4 fred as int8 # fred 5 joe as float32 /# joe #/ 6 bob as uint16# bob 7 larry as int64/# larry #/ 8 int8variable = fred = 5 9 float64_variable = joe = 6.7f32 10 uint16variable = bob = 42 11 larry = 3452223 12 print int8variable, fred, float64_variable, joe, uint16variable, bob, larry 13 14 def int64test 15 pass 16 17 def float32test 18 pass 19 20 def uint8test 21 pass 22 23 No newline at end of file