Command parsing... best module to use?

Mark Tolonen metolone+gmane at
Mon Nov 2 19:21:34 CET 2009

"Collin D" < at> wrote in message 
news:94dbc92b-0682-4995-b358-0c615c95a27a at
> Hey everyone.
> I am writing a game in python, and it includes a text console somewhat
> like the one in WoW and Runescape. I want to be able to include "/"
> commands, like IRC, and was wondering what the best module would be to
> parse these.

Check out the pyparsing module.  Here is a presentation given by the author 
for parsing an interactive game.


More information about the Python-list mailing list