Antlr Tutorial Prep.

Hello Planet Linux.Conf.Au!

I’m very fortunate this year to be giving a tutorial on Antlr, a parser generator toolkit that I’ve done a little work for.

I’ve given plenty of talks on Antlr and even saw the lead developer (Terence Parr) give a talk when he was in Sydney, so I’m quite comfy there.

What I’m not so sure of is how to lead a tutorial session. Antlr has a great IDE in AntlrWorks, which definitely makes things easier. My problem is trying to come up with problems that aren’t too hard, and that show off the features of Antlr; but also show off the workflow benefits of a toolkit that scales.

My best idea so far is to create a simple configuration file parser, extend that to an expression evaluator, turn that into an interpreter, then use string templates to output Python bytecode.

If you’ve got any ideas, please drop me a mail.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s


%d bloggers like this: