mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
SUMMARY="A Parser Generator for Python (w/mxTextTools derivative)"
|
|
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)."
|
|
HOMEPAGE="http://simpleparse.sourceforge.net/"
|
|
COPYRIGHT="1998-2006, Mike C. Fletcher"
|
|
LICENSE="simpleparse"
|
|
REVISION="1"
|
|
SOURCE_URI="http://downloads.sourceforge.net/project/simpleparse/simpleparse/2.1.1a2/SimpleParse-2.1.1a2.tar.gz"
|
|
CHECKSUM_SHA256="9899df932c6805dbb6433c7395e696fd60723f463513933e925cc77314c6bbb8"
|
|
SOURCE_DIR="SimpleParse-$portVersion"
|
|
|
|
ARCHITECTURES="!x86_gcc2"
|
|
|
|
PROVIDES="
|
|
simpleparse = $portVersion
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:python
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
python setup.py build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
python setup.py install --root=${DESTDIR}
|
|
|
|
}
|