The following files should be compatible with any Python 2.x version. On Microsoft Windows platforms you might need to install Python. You can get it here...

To test the parser, just start it in a command line tool:


or provide an example sentence (that is covered by the grammar) as for example:

python John kissed Mary

The output can be reduced to the parse only by changing the value of DEBUG in the beginning of to:


Change the grammar definition to any file you like by setting the file name in:


Main chart parser implementation.
A small parser and object wrapper for phrase structure rules and grammar files.
A sample phrase structure grammar for English.