* 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
18 lines
202 B
TypeScript
18 lines
202 B
TypeScript
// @filename: 1.ts
|
|
0b00_
|
|
|
|
// @filename: 2.ts
|
|
0b_110
|
|
|
|
// @filename: 3.ts
|
|
0_B0101
|
|
|
|
// @filename: 4.ts
|
|
0b01__11
|
|
|
|
// @filename: 5.ts
|
|
|
|
0B0110_0110__
|
|
|
|
// @filename: 6.ts
|
|
0b___0111010_0101_1
|