textproc/py-TatSu 5.13.1 DragonFly
Generate Python parsers from grammars in a variation of EBNF
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- BSD4CLAUSE
- Categories
- python, textproc
- Package size
- 198.9 KiB, 1403.4 KiB installed
Description
TatSu is a tool that takes grammars in a variation of EBNF as input, and outputs memoizing (Packrat) PEG parsers in Python.
TatSu can compile a grammar stored in a string into a tatsu.grammars.Grammar object that can be used to parse any given input, much like the re module does with regular expressions, or it can generate a Python module that implements the parser.
TatSu supports left-recursive rules in PEG grammars, and it honors left-associativity in the resulting parse trees.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | textproc/py-TatSu | 5.13.1 |
| FreeBSD | textproc/py-TatSu | 5.24.0 |
| NetBSD | wip/py-tatsu | 4.3.0 |
| HardenedBSD | textproc/py-TatSu | 5.24.0 |
| GhostBSD | textproc/py-TatSu | 5.24.0 |
Install
Binary package:
pkg install TatSu
From DPorts:
cd /usr/dports/textproc/py-TatSu && make install clean