diff options
-rw-r--r-- | listbas.1 | 22 | ||||
-rw-r--r-- | listbas.rst | 14 |
2 files changed, 12 insertions, 24 deletions
@@ -198,7 +198,10 @@ OSS realized their mistake and fixed it in BASIC XL). .sp OSS Integer BASIC also uses incompatible tokens. However, it uses a different signature (first byte of file is \fB$77\fP), so it will be -reliably autodetected. +reliably autodetected. The disk and cartridge versions of Integer +BASIC use different tokens; this is also autodetected pretty +reliably. If the code doesn\(aqt make sense, try \fB\-bic\fP or \fB\-bid\fP +to override the autodetection. .sp If you see lots of "bad token XX" messages, or if the code just doesn\(aqt make any sense, you\(aqre using the wrong BASIC @@ -369,7 +372,7 @@ looks very similar to how it would appear on the Atari. .IP \(bu 2 \fBlistbas\fP does color syntax highlighting. .IP \(bu 2 -\fBlistbas\fP supports OSS BASIC/A+ in addition to Turbo and BXL/BXE. +\fBlistbas\fP supports OSS BASIC/A+ and Integer BASIC in addition to Turbo and BXL/BXE. .IP \(bu 2 \fBlistbas\fP indents BASIC/A+, Turbo, BXL, and BXE code, just like the actual BASICs do. @@ -437,20 +440,7 @@ otherwise work (display color and inverse) with the \fB\-m\fP or \fB\-d\fP options to \fBlistbas\fP\&. .SS HTML Output .sp -I thought about adding an HTML output option, but there\(aqs no need: if you want -a colorful listing of an Atari BASIC program, install \fBaha\fP(1) from -\fI\%https://github.com/theZiz/aha\fP (or your distro\(aqs package repo) and run -something like: -.INDENT 0.0 -.INDENT 3.5 -.sp -.nf -.ft C -listbas PROGRAM.BAS | aha > program.html -.ft P -.fi -.UNINDENT -.UNINDENT +See \fBabas2html\fP(1). .SH ENVIRONMENT .INDENT 0.0 .TP diff --git a/listbas.rst b/listbas.rst index 6a377b2..d15792b 100644 --- a/listbas.rst +++ b/listbas.rst @@ -170,7 +170,10 @@ OSS realized their mistake and fixed it in BASIC XL). OSS Integer BASIC also uses incompatible tokens. However, it uses a different signature (first byte of file is **$77**), so it will be -reliably autodetected. +reliably autodetected. The disk and cartridge versions of Integer +BASIC use different tokens; this is also autodetected pretty +reliably. If the code doesn't make sense, try **-bic** or **-bid** +to override the autodetection. If you see lots of "bad token XX" messages, or if the code just doesn't make any sense, you're using the wrong BASIC @@ -319,7 +322,7 @@ Comparison to chkbas - **listbas** does color syntax highlighting. -- **listbas** supports OSS BASIC/A+ in addition to Turbo and BXL/BXE. +- **listbas** supports OSS BASIC/A+ and Integer BASIC in addition to Turbo and BXL/BXE. - **listbas** indents BASIC/A+, Turbo, BXL, and BXE code, just like the actual BASICs do. @@ -387,12 +390,7 @@ options to **listbas**. HTML Output ----------- -I thought about adding an HTML output option, but there's no need: if you want -a colorful listing of an Atari BASIC program, install **aha**\(1) from -https://github.com/theZiz/aha (or your distro's package repo) and run -something like:: - - listbas PROGRAM.BAS | aha > program.html +See **abas2html**\(1). ENVIRONMENT =========== |