Port of the LEMON Parser Generator
Project description
Lemonade is a Python port of the LEMON Parser Generator written by
D. Richard Hipp:
http://www.hwaci.com/sw/lemon/
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:
http://www.hwaci.com/sw/lemon/lemon.html
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.
----
Leif Strand
August 28, 2012
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
lemonade-1.0b1.tar.gz
(30.3 kB
view details)
File details
Details for the file lemonade-1.0b1.tar.gz
.
File metadata
- Download URL: lemonade-1.0b1.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04a1563ecc3f9ca12140cbb006e3fe2f47be5cea17e6d5af277e945c3b6ab86 |
|
MD5 | a841cc4aae23dd10653404be9fe098a8 |
|
BLAKE2b-256 | c88946d2613761737f57b28de84adee8e22371a07105d676ba86f9f7bfc985bd |