Index: head/textproc/Makefile =================================================================== --- head/textproc/Makefile +++ head/textproc/Makefile @@ -1305,6 +1305,7 @@ SUBDIR += py-parsimonious SUBDIR += py-pdfminer SUBDIR += py-pss + SUBDIR += py-pyPEG2 SUBDIR += py-pyctpp2 SUBDIR += py-pyelasticsearch SUBDIR += py-pyes Index: head/textproc/py-pyPEG2/Makefile =================================================================== --- head/textproc/py-pyPEG2/Makefile +++ head/textproc/py-pyPEG2/Makefile @@ -0,0 +1,20 @@ +# Created by: Ed Schouten +# $FreeBSD$ + +PORTNAME= pyPEG2 +PORTVERSION= 2.15.2 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ed@FreeBSD.org +COMMENT= Parsing Expression Grammar (PEG) parser for Python + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES?= python +USE_PYTHON= autoplist distutils +NO_ARCH= yes + +.include Index: head/textproc/py-pyPEG2/distinfo =================================================================== --- head/textproc/py-pyPEG2/distinfo +++ head/textproc/py-pyPEG2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1502893061 +SHA256 (pyPEG2-2.15.2.tar.gz) = 2b2d4f80d8e1a9370b2a91f4a25f4abf7f69b85c8da84cd23ec36451958a1f6d +SIZE (pyPEG2-2.15.2.tar.gz) = 40334 Index: head/textproc/py-pyPEG2/pkg-descr =================================================================== --- head/textproc/py-pyPEG2/pkg-descr +++ head/textproc/py-pyPEG2/pkg-descr @@ -0,0 +1,7 @@ +PyPEG2 is a parser-interpreter for Parsing Expression Grammars (PEGs). + +PEGs look similar to context-free grammars (CFGs), except that the choice +operator always picks the first matching option. This allows for parsing +in linear time. + +WWW: https://fdik.org/pyPEG/