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.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-lark listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py311-lark-1.3.1:
INTEREGULAR=on: Check regex collisions
NEARLEY=off: Import grammars from Nearley.js
REGEX=on: Use third-party regex instead of standard library re
===> Use 'make config' to modify these settings
all: expire (indirect) consumers of devel/py-atomicwrites on 2025-06-21
Some ports are expiring via devel/py-lark, which has
devel/py-atomicwrites as an optional dependency.
devel/py-lark: Update to 1.1.7
- Use USES=dos2unix to convert CRLF to LF
- Convert to USE_PYTHON=pep517
- Add INTEREGULAR option
Changes: https://github.com/lark-parser/lark/releases
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/py-lark: Add py-lark 1.1.2
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.
WWW: https://github.com/lark-parser/lark