pyparsing

pyparsing — an object-oriented approach to text processing in Python.