sly
Sly Lex Yacc (by dabeaz)
chpeg
Parsing Expression Grammar (PEG) bytecode parser/compiler library (by ChrisHixon)
Our great sponsors
sly | chpeg | |
---|---|---|
3 | 1 | |
787 | 12 | |
- | - | |
0.0 | 0.0 | |
about 1 year ago | almost 2 years ago | |
Python | C | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sly
Posts with mentions or reviews of sly.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-07.
- TatSu takes grammars in variation of EBNF, outputs memoizing Python PEG parsers
-
Any equivalent to Haskell's "where"?
David Beazley's sly abuses metaclasses to allow writing code like this:
-
What arcane magic makes quotes unnecessary in defining sly's tokenlist?
It does some metaclass magic to make this work: https://github.com/dabeaz/sly/blob/master/sly/lex.py
chpeg
Posts with mentions or reviews of chpeg.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-07.
-
TatSu takes grammars in variation of EBNF, outputs memoizing Python PEG parsers
To add to your list I just found this project https://github.com/ChrisHixon/chpeg it has good performance and it's relatively simple compared to others.
What are some alternatives?
When comparing sly and chpeg you can also consider the following projects:
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
TatSu - 竜 TatSu generates Python parsers from grammars in a variation of EBNF
pyparsing - Python library for creating PEG parsers
nez - Nez parsing library
pegpy - Nez Parser for Python