home *** CD-ROM | disk | FTP | other *** search
-
- /***
-
- Here's a little C program I knocked up to convert tokenised BASIC programs to
- text files. They are already available for Archies, but this one is machine
- independent. It can be quite useful for looking at downloaded files on UNIX
- or other networked machines. Basically one HUGE switch construct. Hope
- somebody finds it useful.
-
- Liam Corner
- csubt@csv.warwick.ac.uk
- zenith@dcs.warwick.ac.uk
-
- 1.01 - added -n switch
-
- ***/
-
- /*****************************************************************************/
- /* Basic to Text - Liam Corner March 1992 */
- /* */
- /* Converts a tokenised BBC BASIC V file into a text file */
- /* Does not convert GOTO (or GOSUB) line numbers, but nobody uses those */
- /* anymore, do they :-) */
- /* Please correct any silly mistakes/omissions */
- /*****************************************************************************/
-
- Usage:
-
- bas2txt < basicfile > textfile
-
- converts basicfile to textfile
-
- bas2txt -n < basicfile > textfile
-
- converts basicfile to textfile and outputs line numbers too
-