All checks were successful
akbasic CI Build / cmake_build (push) Successful in 3m29s
akbasic CI Build / sanitizers (push) Successful in 4m42s
akbasic CI Build / coverage (push) Successful in 3m56s
akbasic CI Build / akgl_build (push) Successful in 8m34s
akbasic CI Build / mutation_test (push) Successful in 18m50s
10 lines
406 B
QBasic
10 lines
406 B
QBasic
10 REM A leading zero is padding, not a radix. The reference selected base 8
|
|
20 REM for lexemes starting with 0; 010 printed 8 and 08 was a parse error --
|
|
30 REM TODO.md section 6 item 10 is fixed; Commodore BASIC has no octal.
|
|
40 REM 0x is the one prefix that changes the base, and now reaches the scanner
|
|
50 REM whole: that was section 6 item 15.
|
|
60 PRINT 010
|
|
70 PRINT 08
|
|
80 PRINT 0xff
|
|
90 PRINT 0x10 + 1
|