New port: textproc/py-grako: Convert EBNF grammar to PEG/Packrat parser in Python

This commit is contained in:
Yuri Victorovich 2018-07-03 06:16:35 +00:00
parent 9ae931e77c
commit dbde8d38a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473800
4 changed files with 32 additions and 0 deletions

View File

@ -1303,6 +1303,7 @@
SUBDIR += py-genshi
SUBDIR += py-gensim
SUBDIR += py-gfm
SUBDIR += py-grako
SUBDIR += py-guess-language
SUBDIR += py-hexdump
SUBDIR += py-html2text

View File

@ -0,0 +1,20 @@
# $FreeBSD$
PORTNAME= grako
DISTVERSION= 3.99.9
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Convert EBNF grammar to PEG/Packrat parser in Python
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR}
USES= python zip
USE_PYTHON= distutils cython autoplist
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1530596270
SHA256 (grako-3.99.9.zip) = fcc37309eab7cd0cbbb26cfd6a54303fbb80a00a58ab295d1e665bc69189c364
SIZE (grako-3.99.9.zip) = 159278

View File

@ -0,0 +1,8 @@
Grako (for grammar compiler) is a tool that takes grammars in a variation of
EBNF as input, and outputs memoizing (Packrat) PEG parsers in Python.
Grako can also compile a grammar stored in a string into a Grammar object that
can be used to parse any given input, much like the re module does with regular
expressions.
WWW: https://bitbucket.org/neogeny/grako