BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/py-lark1.1.9_1no data-[email protected]-
FreeBSDdevel/py-lark1.3.1 newestnone known-[email protected]-
DragonFlydevel/py-lark1.2.2none known-[email protected]-
HardenedBSDdevel/py-lark1.3.1 newestno data-[email protected]-
GhostBSDdevel/py-lark1.3.1 newestno data-[email protected]-

Compare across BSDs

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

Build dependencies 2
Required by 1

Configuration

Options name: devel_lark

OptionDefaultDescription
ATOMIC_CACHEonMultiprocess caching and crash recovery support
INTEREGULARonCheck regex collisions
NEARLEYoffImport grammars from Nearley.js
REGEXonUse third-party regex instead of standard library re
USES
dos2unix python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
lark-1.1.9.tar.gz25545115fa5236490824c2c4aba0e22d2d6d823575dcaf4cdd1848e34b6ad836240fba
Master sites 1
  • PYPI