From nobody Sun Aug 4 17:21:43 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WcRFM5KlPz5Sgk0; Sun, 04 Aug 2024 17:21:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WcRFM4PP6z4vfr; Sun, 4 Aug 2024 17:21:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722792103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=thXh5kDLtHMO75fv/w4y65KEleiBiSr59tqxgQrG0ic=; b=eHnXnFgJJFRK8D8kE/42H5IXvxJzqKXi6xb+cIGD3hYWHkP8Eoq3Gg5tSBEsbmsQKzGBEO jCdHdZpHEdXq5pQfdffVG/zKLs0lZ6vKJPBHpPiYcXZsZqlg4VBWTE0R6bXwOAqHucahWX 6HZrsI7QqkCgXzSsGwouFD3M5iPUTdvbKHo2UV+R9jP2FVAPn7k0knIWhIoVm+ACiPr3D8 4R3gfoGm60jDOpPH0U/7MPxedJQ0+ebZ5Dc27ysPUpQdFkYk11zd/rSWE7X/iXpotmbiDO rMAFfwXkC6I7UDf7bE2XCTMqlvXO6VnY3hp0pS/gz6TlWQm7LhAXl5mVY0DXlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722792103; a=rsa-sha256; cv=none; b=nwcnIv5WfTQYbr3vD9DJdCe5a4zd7koSUJ9RVJV6FbuiU0dMYCapc16VzOyqLA14h5daNH 6B/uEODs2BqQ9XS66ekLHTBLGTafdc47uDk72u93pilWxp3k9+lK1AujOpN+RhO5Ye3l7Y NCOd8JKSZVgL1rutsK0m5YloXhFeHt08hds70GEcXcdGfrSsBNISv8mPmKbAWamxeRPNMr 7Fxq1deRkeO2cbH1HJObPTFxhwfo3hHz/wNsYLfRPERNYenfosgDjMgUVKY0yR32tpWcbB yc1boSBa2aaNip2BPW6AYLGMHv5d5JLaMgjXjoDKZOYXU4s/JjmUYEb5c/i4pA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722792103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=thXh5kDLtHMO75fv/w4y65KEleiBiSr59tqxgQrG0ic=; b=gmSrrwcyKtbUoIf8wNgQBQQFxnghKpOSjnoGR6/dIFobulC4SljoQxBHHlwteD3Do7+jL7 l3kIy9jjq9W4fnHUK3d0KtTLAS8eZW0VttoBSbEUn6EgvubeFq8UBDFCabPWcO0zDH7/oE pUqe8tV5bDDOq9vwarT0716vgYj2/seIlOW7j/uBTbAC4CPpSV1BjK7LpsI12fv2URGdLA brjRDcOarDN/R3uxWePLZjyA+RcjCFHRnrSizdagLDCkfzIJuFGN590f9qXlr44KtMQEBE u/2yUQKGdHCfS/4oYrs0VL0Jrxf9ZQj2EJSaEMeTzRwjNAgmIOq5TvHSS+WoiQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WcRFM3Gmsz141r; Sun, 4 Aug 2024 17:21:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 474HLhN8058916; Sun, 4 Aug 2024 17:21:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 474HLhBJ058913; Sun, 4 Aug 2024 17:21:43 GMT (envelope-from git) Date: Sun, 4 Aug 2024 17:21:43 GMT Message-Id: <202408041721.474HLhBJ058913@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 4bf4bfecb807 - main - devel/py-spark-parser: Add py-spark-parser 1.8.9 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4bf4bfecb807d7b0507137edc8550df1de6bebd4 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4bf4bfecb807d7b0507137edc8550df1de6bebd4 commit 4bf4bfecb807d7b0507137edc8550df1de6bebd4 Author: Po-Chuan Hsieh AuthorDate: 2024-08-04 16:44:03 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-08-04 17:13:51 +0000 devel/py-spark-parser: Add py-spark-parser 1.8.9 This package uses Jay Earley's algorithm for parsing context free grammars, and comes with some generic Abstract Syntax Tree routines. There is also a prototype scanner which does its job by combining Python regular expressions. (SPARK stands for Scanning, Parsing, and Rewriting Kit. It is a poor name since it conflicts with a more popular package of the same name. In the future we will rename this.) The original version of this was written by John Aycock for his Ph.D thesis and was described in his 1998 paper: "Compiling Little Languages in Python" at the 7th International Python Conference. The current incarnation of this code is maintained (or not) by Rocky Bernstein. Note: Earley algorithm parsers are almost linear when given an LR grammar. These are grammars which are left-recursive. --- devel/Makefile | 1 + devel/py-spark-parser/Makefile | 24 ++++++++++++++++++++++++ devel/py-spark-parser/distinfo | 3 +++ devel/py-spark-parser/pkg-descr | 15 +++++++++++++++ 4 files changed, 43 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index aaf67eb0b8ce..4d513891aa89 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5799,6 +5799,7 @@ SUBDIR += py-sniffio SUBDIR += py-sortedcontainers SUBDIR += py-sourcemap + SUBDIR += py-spark-parser SUBDIR += py-sparse SUBDIR += py-speaklater SUBDIR += py-speg diff --git a/devel/py-spark-parser/Makefile b/devel/py-spark-parser/Makefile new file mode 100644 index 000000000000..e0d4a700d4f9 --- /dev/null +++ b/devel/py-spark-parser/Makefile @@ -0,0 +1,24 @@ +PORTNAME= spark-parser +PORTVERSION= 1.8.9 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= spark_parser-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Earley-Algorithm Context-free grammar Parser Toolkit +WWW= https://github.com/rocky/python-spark + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-spark-parser/distinfo b/devel/py-spark-parser/distinfo new file mode 100644 index 000000000000..319b545d3a09 --- /dev/null +++ b/devel/py-spark-parser/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722711123 +SHA256 (spark_parser-1.8.9.tar.gz) = a7bb97b97953fb8bf0cd8158d820b6467ef1e7f747738e82248ae4c824f1e25a +SIZE (spark_parser-1.8.9.tar.gz) = 118345 diff --git a/devel/py-spark-parser/pkg-descr b/devel/py-spark-parser/pkg-descr new file mode 100644 index 000000000000..d406a43f9320 --- /dev/null +++ b/devel/py-spark-parser/pkg-descr @@ -0,0 +1,15 @@ +This package uses Jay Earley's algorithm for parsing context free grammars, and +comes with some generic Abstract Syntax Tree routines. There is also a prototype +scanner which does its job by combining Python regular expressions. + +(SPARK stands for Scanning, Parsing, and Rewriting Kit. It is a poor name since +it conflicts with a more popular package of the same name. In the future we will +rename this.) + +The original version of this was written by John Aycock for his Ph.D thesis and +was described in his 1998 paper: "Compiling Little Languages in Python" at the +7th International Python Conference. The current incarnation of this code is +maintained (or not) by Rocky Bernstein. + +Note: Earley algorithm parsers are almost linear when given an LR grammar. These +are grammars which are left-recursive.