[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: A XyWrite Programming Preprocessor
- Subject: Re: A XyWrite Programming Preprocessor
- From: Harry Binswanger hb@xxxxxxxx
- Date: Fri, 24 Apr 2009 08:43:47 -0400
Dare I mention XyBasic--the world's most elaborate XyWrite preprocessor?
Yes, I guess I dare.
>The downside -- and it's a big one for me -- is that you end up with
two versions of the program, the user-friendly one and the one that
really works. You could narrow the gap between the two by adding a
line to COMPILE.R that RUNs the "compiled" code after it removes the
comments -- in other words, turn it into an enhanced RUN command.
That would be value-added, from my point of view.
Sure, if you want to test the program right away. My main concern was to
write readable well-structured code (that I do not have try to figure out
every time it needs a rewrite). I have used this system to rewrite basic
routines of the XyWrite engine to suit my specialty purposes. So the
runnable routines have to be compact. In fact, they are loaded into memory
at startup.
>The trick is to find something
that allows comments to be read in non-eXPanded view without adding
a lot of baggage that slows down the program. I like Wally Bass's
strategy of using a simple IF statement ("1<0") that evaluates to
False, so that execution jumps to the next EndIf. Like this:
BC es 1XC ≪IF1<0~≫ Turn Error Suppression ON.............
More comments here, if you like...........................
≪EI~≫program continues here
Ok. That is quite feasible if you make an ad hoc program. But less so, if
the routines are an integral part of your Xy engine.
Best regards,
Kari Eveli
LEXITEC Book Publishing (Finland)
lexitec@xxxxxxxx
*** Lexitec Online ***
English summary of our services: http://www.lexitec.fi/sitesummary.html
FileOpen-based ebook packaging and support:
http://www.lexitec.fi/fileopen.html
Acrobat Reader Treasure Trove: http://www.lexitec.fi/acrobat-reader.html
English-Finnish-English Computer Terms: http://www.lexitec.fi/glossary.html
Home page (in Finnish): http://www.lexitec.fi/
Harry Binswanger
hb@xxxxxxxx