[Coco] CoCo BASIC tokenizer

Roger Taylor operator at coco3.com
Sat Oct 11 18:30:08 EDT 2008


Actually, I never tried it because I assumed decb.exe could only copy 
to/from virtual disks and the local drive.  I wasn't aware that the 
tool could do this.

So, decb.exe is effectively a "compiler" as far as Rainbow is 
concerned.  Any tool that can take a source file and turn it into any 
kind of object file, or translate any file from one into another, is 
called a Builder in Rainbow IDE 2.0.  This helped me unify a lot of 
the code and do away with some bloated and duped code and arrays.

I'll add decb.exe as a builder (with type=compiler) in a while and do 
some test builds of some ASCII BASIC game listings, etc.

Thanks








At 05:19 PM 10/11/2008, you wrote:
>Roger Taylor <operator at coco3.com> wrote:
>
> > Does anyone know if there's a 32-bit 80x86 command-line tool for
> > converting ASCII BASIC listings into tokenized format... for the CoCo
> > 1,2,3 ?  I know that decb.exe can  do this, but not without putting
> > the source file onto a virtual disk at the same time as far as I
> > know.
>
>Did you try it?
>
>DECB works here in *nix land (Mac OS X) the way you want.
>
>g4:~ tlindner$ cat BASIC.TXT
>10 PRINT "HELLO "
>20 ? "WORLD"
>30 GOTO 30
>g4:~ tlindner$ decb copy -t BASIC.TXT BASIC.BAS
>g4:~ tlindner$ decb dump BASIC.BAS
>
>
>   Addr     0 1  2 3  4 5  6 7  8 9  A B  C D  E F 0 2 4 6 8 A C E
>--------  ---- ---- ---- ---- ---- ---- ---- ---- ----------------
>00000000  260d 000a 8720 2248 454c 4c4f 2022 0026 &.... "HELLO ".&
>00000010  1b00 1487 2022 574f 524c 4422 0026 2500 .... "WORLD".&%.
>00000020  1e81 a520 3330 0000 00                  ..% 30...
>
>--
>tim lindner
>tlindner at macmess.org                                              Bright
>
>--
>Coco mailing list
>Coco at maltedmedia.com
>http://five.pairlist.net/mailman/listinfo/coco

-- 
Roger Taylor

http://www.wordofthedayonline.com/random_thoughts_august_3_2007.asp




More information about the Coco mailing list