Port of the LEMON Parser Generator
Project description
Lemonade is a Python port of the LEMON Parser Generator written by D. Richard Hipp:
Lemonade can be used in the traditional fashion to create a standalone parser:
lemonade gram.y
The above command generates “gram.py”, which you can include in your project.
Since Python is a dynamic language, Lemonade could also enable client software to generate a parser from a user-supplied .y file, and then use the generated parser on the fly.
This is the beta release of Lemonade. There is no documentation yet. You may find the original LEMON documentation helpful:
However, many of LEMON’s “%” directives are irrelevant in Python; therefore, they have been eliminated in Lemonade. Further, Lemonade does not allow code fragments (“{}”) within the grammar file. Instead, the reduce actions are specified in a separate delegate class. See the ‘examples’ directory for an example.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file lemonade-1.0b4.tar.gz.
File metadata
- Download URL: lemonade-1.0b4.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
032a2a841c89cb8ce5460e2f28cd2dc7ad814e01fb4628926b54d497024c75f5
|
|
| MD5 |
7073257bf5eb8727640e8aa868d88f5b
|
|
| BLAKE2b-256 |
77f562a564445a69b42fcb6e62b8b690d5f11a83eaa1cf16ca16bbf6d6a5fba6
|