r/Basic • • Oct 23 '22

An example of "metaprogramming" (to generate BASIC lines of code) in BASIC Anywhere Machine

In the process of implementing the XOR operator in BASIC Anywhere Machine.

While I was at it, I decided to format the test program’s output a little bit.

Since PRINT USING in wwwBASIC is crap, and fixing that is not on my radar yet, I decided that this is a good use case for some “meta-programming” (i.e. TiddlyWiki scripting) to generate the BASIC program’s PRINT statements.

3 Upvotes

0 comments sorted by