[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Whatever happened to the KEGS updates?
On Apr 7, 8:57 pm, sicklittlemonkey <nick.westg...@gmail.com> wrote:
> On Apr 8, 7:22 am, "Christopher G. Mason" <c...@my-deja.com> wrote:
>
> > On 4/7/2010 12:18 PM, BLuRry wrote:
> > > concede that the hybrid approach is probable the most sane route, but
>
> > Insanity indeed. Besides reinventing the wheel (KEGS has a configuration
> > file that works perfectly fine), you do realize its easier to do
> > everything on the "native" side of things vs. within the emulator. All
> > KEGS would need is a configuration file manager (Bernie has this I
> > think). Its not really a priority though.
>
> Yes, one of those brilliant ideas that should never be
> implemented! ;-)
>
Say what you will, just for grins I've written an abstract model that
represents an applesoft program (Program, with one or more lines, Line
has a number and one or more commands separated by colons, Command is
a list of ByteOrToken instances -- and Token is an enumeration of all
recognized applesoft tokens). Currently it can take a binary
representation of an applesoft program and "disassemble" it to a
readable listing. Turning around and writing a parser is pretty
trivial at this point.
Makes me wonder though, is there any interest in a project that can
take an extended basic syntax (say one that does away with line
numbers in favor of labels), as well as if/then/else, while and repeat/
until support? Seems pretty straightforward to build a custom
language parser that renders the result into a corresponding applesoft
program.
-Brendan