Adventures of a Programmer: Parser Writing Peril XXIV

If you are wondering about the numbering scheme: I forgot to use the 14 and hate to waste things.

The grammar was finished in the last posting? No, it was not, of course not đŸ˜‰
I added the Matrix data type but forgot to add something to read it back in. That is hopefully repaired now. The Object thingie had been changed back from being hardcoded into the identifier to being parsed regularly.
The grammar validates with abnf and abnfgen which is also a generator for tests. The latter does not alway work for our grammar (goes into a very large, maybe infinite loop) which shows something. I don’ know what exactly but it shows something ;-). The program called Bill’s ABNF Parser, a tool over at the IETF webpage is quite nit-picky but all over OK with it.

Uploaded to Little

Next: use of the grammar to write a parser that prints the AST. Once we have the AST, the rest are mere details. No, of course not, that would be nice, but it is a very good start.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.