BSD Ports

devel/py-simpleparse 2.2.4_2 FreeBSD

Python EBNF parser generator (with mx.TextTools derivative)

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
1db8a0a12a
Categories
devel, python
Package size
204.2 KiB, 1043.3 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
FreeBSDdevel/py-simpleparse2.2.4_2
DragonFlydevel/py-simpleparse2.2.4_1

Install

Binary package:

pkg install py312-simpleparse

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-simpleparse>0:devel/py-simpleparse

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.2.4_22.2.4_22.2.22.2.4_12.2.4_2
FreeBSD:14:quarterly2.2.4_22.2.4_2n/a2.2.4_12.2.4_2
FreeBSD:15:latest2.2.4_22.2.4_2n/a2.2.4_12.2.4_1
FreeBSD:15:quarterly2.2.4_22.2.4_2n/an/an/a
FreeBSD:16:latest2.2.4_22.2.4_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 7

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 6
FileSizeSHA256
SimpleParse-2.2.4.tar.gz186285892b2ef7cd182bef9197d9d47622978a7ff63e488bc1296e842a7f1f2d76fea6
51c058731d7faedcef29d9e0e86e1f8e97f855b6.patch7074700f45dd501d49800e774133f09def7c03bb2e9d4fb7080bab70e9827d0fd630
3416c19053801e41eebdf108d1a60a41593ab5fb.patch5879064ce1f11c36c612e0401057606ab12b06c1b8421b71041779999f9729ffd00e1
83c8b6f9f9130d114b2c9cf3ce432b989b1a65cc.patch41969ea1990882096130740ccab34496b855581324a74674153c63831030f9a5b0d2f
daa2638479e5484b759fdbfa1f62f965516d1415.patch8959282309eddfa671f535b672d420b62393d8adf356e45c1981394351df1397f49a0
797d53c827d184496a7eac815bc137bd15e068c8.patch194585d8118108e057dfac1cfa239140fcffd62cff7d87ad2d24934db8f5dc9602a03
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
1db8a0a12a Po-Chuan Hsieh devel/py-simpleparse: Fix build with Python 3.12+
cc -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DMX_BUILDING_MXTEXTTOOLS=1 -DPY_SSIZE_T_CLEAN=1 -DDEBUG=1 -Isimpleparse/stt/TextTools/mxTextTools -I/usr/local/include/python3.12 -c simpleparse/stt/TextTools/mxTextTools/mxTextTools.c -o build/temp.freebsd-15.0-RELEASE-p11-amd64-cpython-312/simpleparse/stt/TextTools/mxTextTools/mxTextTools.o simpleparse/stt/TextTools/mxTextTools/mxTextTools.c:244:13: warning: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 244 | return PyUnicode_GET_SIZE(so->match); | ^ …