Tuesday, October 4, 2011

Example python programs that use grammars

We put online two small example programs that use grammars.
  • cfg has a simple program generate.py that can generate strings from a grammar.
  • chart has a program chart.py that can parse strings using a grammar.

No comments:

Post a Comment