chpeg
Parsing Expression Grammar (PEG) bytecode parser/compiler library (by ChrisHixon)
sly
Sly Lex Yacc (by dabeaz)
chpeg | sly | |
---|---|---|
1 | 3 | |
13 | 843 | |
- | 0.5% | |
0.0 | 2.3 | |
almost 3 years ago | 11 months ago | |
C | Python | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
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.
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.
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
What are some alternatives?
When comparing chpeg and sly you can also consider the following projects:
TatSu - 竜 TatSu generates Python parsers from grammars in a variation of EBNF
pyparsing - Python library for creating PEG parsers
pegpy - Nez Parser for Python
nez - Nez parsing library
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.