Parser Generator

BlitzMax Forums/BlitzMax Programming/Parser Generator

grable(Posted 2007) [#1]
Hi, im putting the finishing touches on a parser generator for BlitzMax.
And i was wondering if there is any interest for such a thing?

If it is i might post it, and possibly its source code if anyone wants it.

Heres a link to the very crude Readme for the curious, describing what it does and how it works.


daaan(Posted 2007) [#2]
Looks great. I would like to read the source to get a better understanding of how your parser works. I've been writing parsers for my custom scripting languages but yours seems more functional.


grable(Posted 2007) [#3]
Thanks, its a mix between a hand written parser and a generated one (sample output is in the readme btw)

And as it does not use a lexer/scanner to pre-read tokens it might be a little on slow side, i havent tested this though.

But that is changable, the acutal generator code is quite simple. And seeing as im gonna release the source id be glad for any improvements you or anyone else can come up with.

There is some more bugs i have to work out before i post the source though. give me a couple of hours ;)

heres a Binary to play with in the mean time (with those bugs, but the examples work)


Perturbatio(Posted 2007) [#4]
yep, I'd be interested in at least taking a look at it :)


grable(Posted 2007) [#5]
I think ive taken care of all the bugs (if thats even possible ;)
It is now able to bootstrap itself correctly, so ive updated the binary and uploaded the source as well.

Go here for downloads and info.
Please let me know if something isnt right.

Now im off to play with my Wii =)