* Add support into octal and binary literals * Add hex support * And finally support all numeric literals and fix spelling * Update error message * Refactor error in scanner to take a position * Scan no separators in escape sequences, add escape sequence tests * More decimal tests from the spec presentation examples * Permissive scanning of excess separators * Remove unnecessary assignment * Make code easier to follow
14 lines
151 B
TypeScript
14 lines
151 B
TypeScript
1_000_000_000
|
|
1.1_00_01
|
|
1e1_0
|
|
1e+1_0
|
|
1e-1_0
|
|
1.1e10_0
|
|
1.1e+10_0
|
|
1.1e-10_0
|
|
12_34_56
|
|
1_22_333
|
|
1_2.3_4
|
|
1_2.3_4e5_6
|
|
1_2.3_4e+5_6
|
|
1_2.3_4e-5_6
|