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/"
SOURCE_URI="http://downloads.sourceforge.net/project/simpleparse/simpleparse/2.1.1a2/SimpleParse-2.1.1a2.tar.gz"
CHECKSUM_SHA256="9899df932c6805dbb6433c7395e696fd60723f463513933e925cc77314c6bbb8"
REVISION="1"
ARCHITECTURES="!x86_gcc2"
PROVIDES="
	simpleparse = $portVersion
	"

BUILD_PREREQUIRES="
	cmd:python
	"

SOURCE_DIR="SimpleParse-$portVersion"
BUILD()
{
	python setup.py build
}

INSTALL()
{
	python setup.py install --root=${DESTDIR}

}

LICENSE="simpleparse"
COPYRIGHT="1998-2006, Mike C. Fletcher"
