https://github.com/masonm/grammargrapher
https://github.com/masonm/grammargrapher
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/masonm/grammargrapher
- Owner: MasonM
- License: mit
- Created: 2012-05-22T03:17:09.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-22T03:21:17.000Z (about 14 years ago)
- Last Synced: 2026-07-26T15:00:14.016Z (13 days ago)
- Language: Python
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
=======
Summary
=======
GrammarGrapher is a basic script to display parse trees for user-provided input
using a GLR parsing algorithm. See examples/ directory for examples of usage.
Licensed under the MIT License
============
Dependencies
============
- Python 2.5-2.6
- PyGgy 0.4.1 (http://www.lava.net/~newsham/pyggy/pyggy-0.4.1.tar.gz)
- pydot 1.0.2 (http://pydot.googlecode.com/files/pydot-1.0.2.tar.gz)
- ImageMagick 7.0+
=====
Usage
=====
grapher.py [options]
Where is a .pyg file containing a CFG grammar, is a .pyl containing
the lexical specifications, and [options] is taken from the following list:
-p Override default prefix for dot files with given file.
-a If set, write an animated GIF showing the construction of the parse tree
from top to bottom, with ms delay between each frame.
-o Write to given file. Extension determines format. If not specified, dot file
will be printed to stdout.
-i String to parse. If not provided, input will be taken from STDIN.
-h, --help Print this message