Files
akbasic/tests/language/numeric/octal_literal.bas
Logikoma 221ed7219d Keep BASIC fixtures within the input line limit
Reflow the approved reference cases, shorten local fixture comments, and split the executable docs line so the 80-byte input buffer can read every source line.

Co-authored-by: andrew <andrew@aklabs.net>
2026-08-04 18:50:44 -04:00

10 lines
372 B
QBasic

10 REM A leading zero is padding, not a radix. The reference selects base 8;
20 REM 010 printed 8 and 08 was a parse error -- TODO.md section 6 item 10.
30 REM Commodore BASIC has no octal literals.
40 REM 0x is the one prefix that changes the base and 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