Writing DSL in Python
tocomment: I think it just means writing a programming language but a little one.  So use pyparsing as your parser.  The May 2008 Python magazine has a good article on making an interpreter/compiler for brainf*ck using PyParsing.