Re: Allen, Allen, my buddy, you're gonna love this.

Allen Huffman via Coco <coco-uNHYcr1XS/wmlAP/[email protected]>
Newsgroups gmane.comp.hardware.tandy.coco
Message-ID <[email protected]>

> On Aug 13, 2025, at 6:09 PM, Juan Castro via Coco <[email protected]> wrote:
> 
> (For certain twisted, messed up definitions of "love.")
> 
> Type this program in a CoCo 3, then save it to disk. It won't run, but it
> will tokenize every keyword, no problem.

Okay, more. Alex Evans’ BASIC UTILS have tokenizers … in Python. Here is his table:

https://github.com/varmfskii/basic_utils/blob/main/basic69/dialects.py

super_keywords = [
    ("ATTR", 0xF8), ("BRK", 0xF0), ("BUTTON", 0xFFA9), ("CMP", 0xF6),
    ("ERLIN", 0xFFAC), ("ERNO", 0xFFAB), ("ERR", 0xEF), ("HBUFF", 0xED),
    ("HCIRCLE", 0xE9), ("HCLS", 0xE6), ("HCOLOR", 0xE7), ("HDRAW", 0xF5),
    ("HGET", 0xEB), ("HLINE", 0xEA), ("HPAINT", 0xE8), ("HPOINT", 0xFFAA),
    ("HPRINT", 0xEE), ("HPUT", 0xEC), ("HRESET", 0xF4), ("HSCREEN", 0xE4),
    ("HSET", 0xF3), ("HSTAT", 0xF2), ("LOCATE", 0xF1), ("LPEEK", 0xFFA8),
    ("LPOKE", 0xE5), ("PALETTE", 0xE3), ("RGB", 0xF7), ("WIDTH", 0xE2)
]

Unravelled says:

LPEEK A8
BUTTON A9
HPOINT AA
ERNO AB
ERLIN AC

And this matches the table in the BASIC UTILS.

Which makes me think … it’s broken for these tokens!

(Or he has a special thing in the routine that uses the tokens that adjusts.)

Now I need to test that.


--
Allen Huffman - PO Box 7634 - Urbandale IA 50323 - 515-999-0227 (vmail/TXT only)
http://www.subethasoftware.com - https://www.facebook.com/subethasoftware



-- 
Coco mailing list
[email protected]
https://pairlist5.pair.net/mailman/listinfo/coco
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.