Mini-languages in Python

Pyparsing is handy for writing “little languages”. I gave a presentation at PyCon’06 on writing a simple adventure game engine, in which the language being parsed and interpreted was the game command set (“inventory”, “take sword”, “drop book”, etc.). (Source code here.)

You can also find links to other pyparsing articles at the pyparsing wiki.

Leave a Comment