BSD Ports

devel/py-simpleparse 2.2.4_1 DragonFly

Python EBNF parser generator (with mx.TextTools derivative)

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
devel, python
Package size
186.8 KiB, 1013.6 KiB installed

Description

SimpleParse is a BSD-licensed Python package providing a simple and fast parser generator using a modified version of the mxTextTools text-tagging engine. SimpleParse allows you to generate parsers directly from your EBNF grammar.

Unlike most parser generators, SimpleParse generates single-pass parsers (there is no distinct tokenization stage), an approach taken from the predecessor project (mcf.pars) which attempted to create "autonomously parsing regex objects". The resulting parsers are not as generalized as those created by, for instance, the Earley algorithm, but they do tend to be useful for the parsing of computer file formats and the like (as distinct from natural language and similar "hard" parsing problems).

As of version 2.1.0 the SimpleParse project includes a patched copy of the mxTextTools tagging library with the non-recursive rewrite of the core parsing loop. This means that you will need to build the extension module to use SimpleParse, but the effect is to provide a uniform parsing platform where all of the features of a give SimpleParse version are always available.

In the other systems

SystemPortVersion
DragonFlydevel/py-simpleparse2.2.4_1
FreeBSDdevel/py-simpleparse2.2.4_2
HardenedBSDdevel/py-simpleparse2.2.4_2
GhostBSDdevel/py-simpleparse2.2.4_2

Install

Binary package:

pkg install py311-simpleparse

From DPorts:

cd /usr/dports/devel/py-simpleparse && make install clean

Dependencies

Run dependencies 1

No port depends on this one.