devel/py-lark 1.1.9_1 MidnightBSD
Modern parsing library
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, python
Description
ark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
Lark can parse all context-free languages. To put it simply, it means that it is capable of parsing almost any programming language out there, and to some degree most natural languages too.
What can it do?
- Parse all context-free grammars, and handle any ambiguity gracefully
- Build an annotated parse-tree automagically, no construction code required.
- Provide first-rate performance in terms of both Big-O complexity and measured run-time (considering that this is Python ;)
- Run on every Python interpreter (it's pure-python)
- Generate a stand-alone parser (for LALR(1) grammars)
- And many more features. Read ahead and find out!
Most importantly, Lark will save you time and prevent you from getting parsing headaches.
In the other systems
The newest version among them is 1.3.1, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/py-lark | 1.1.9_1 | no data | - | [email protected] | - |
| FreeBSD | devel/py-lark | 1.3.1 newest | none known | - | [email protected] | - |
| DragonFly | devel/py-lark | 1.2.2 | none known | - | [email protected] | - |
| HardenedBSD | devel/py-lark | 1.3.1 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-lark | 1.3.1 newest | no data | - | [email protected] | - |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}lark
From mports:
cd /usr/mports/devel/py-lark && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lark>0:devel/py-lark
Dependency graph
Ports that need it on the left, what it needs to run on the right (to build, as it needs nothing to run); at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=61.2.0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Build dependencies 2
Required by 1
Configuration
Options name: devel_lark
| Option | Default | Description |
|---|---|---|
| ATOMIC_CACHE | on | Multiprocess caching and crash recovery support |
| INTEREGULAR | on | Check regex collisions |
| NEARLEY | off | Import grammars from Nearley.js |
| REGEX | on | Use third-party regex instead of standard library re |
- USES
- dos2unix python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| lark-1.1.9.tar.gz | 255451 | 15fa5236490824c2c4aba0e22d2d6d823575dcaf4cdd1848e34b6ad836240fba |
Master sites 1
- PYPI