From nobody Sun Dec 31 18:45:00 2023 X-Original-To: dev-commits-ports-all@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 4T37Md5drLz56HD4; Sun, 31 Dec 2023 18:45:01 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T37Md1Jh9z3KWG; Sun, 31 Dec 2023 18:45:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704048301; 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=UQ6BUTV0DugAnAd3OFhEpmWMS1zV5HvKe2NCnWemjQM=; b=ujQ87kKaYql4vGSOR0JeUT4KF/jUZdw5wEuhrg6VhKdrRU4GXccz15jdiSbTzdC5azlGs/ pNaYQigTV9U6kGPD4SEDSmBQ28bJ5w/Nm24PPhxQAwTBjZ3IAxWweJYRlrWEgDItMhiTJK 1dRYYgj6bLGHJzVYCtLtZfnOnpJ2rArlKkUPRB6RJhDDNy2r45bvKvoe4VaNqsspHbugbT rXYLwSObIU5l1i7J1BScQzWP0Ehf+WbXQybeqMsGhVIvGiiwCzMRVHMbdbgUiTMiVB9kNv DmTNyvaDFsdgqX9Yqhnog9cIcRB4+i5APmMVtvH5CYnspR/uja+iYQWzAcFOzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704048301; a=rsa-sha256; cv=none; b=mDGAiVuOdTuXyMLJFWgE/TL5WsSO/YJhZs8WJdNwy213ibei/tRvb+IOcC5usM1VTd2oxZ VflPhD9h/ejSnnWPE/YxV4VMt+6nbmTcWQc4jgXEepVbbujuM2Sg8xvDcjASCaV5s/ICs1 e8inQN0rllro0UZBJKlcYhgl245vIyD1liomyHPIiMmTk5yDRinvi4kt4iDwBa5OYEMhoq bFvblUpfPotO3MYmZSUTAiJrMii4uZSeT8sjC9X5rSj6wZnRtUzJtlAp//dqL8dhaq8lKB EPqMJ40GqpvFfBQ5cm2J28Y4qsUU3hFgIN+mg6uvb4iFvp60N3cs896dO0ZSKQ== 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=1704048301; 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=UQ6BUTV0DugAnAd3OFhEpmWMS1zV5HvKe2NCnWemjQM=; b=WcPd0gVByXV3t+ceRz0+kexK20R6hNnbQXwpo5Lpg0pWOUA6MknNFoaGR2KX1M9+9Ndnzi ZolfC4ze1syEQLdd3hhUM/ZHksdCR3s16v1MFgzgnfzsyO9Kns0OzYaVJEpnjpEorYGns5 lJpHBT7QC6DfBcDgaO9oxMoelOziwxLuB3z1q+nF7LHAImBYxHxg0KY54fzhOD2XxNqXBl ByMn5K+Z5HXC8F7C0VRcou54tiTyvpveYMa08oR8ZuQNff8I9eFHWt6AqCmfgqAfVKn8vc ImZV3Jqs1CaZBcPnNrlZjB3SpZ4h+k1jZYrQyLUqJDY0STNRG6moLYo38a3eqg== 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 4T37Mc71jNzlrY; Sun, 31 Dec 2023 18:45:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BVIj0aD077773; Sun, 31 Dec 2023 18:45:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BVIj0SW077770; Sun, 31 Dec 2023 18:45:00 GMT (envelope-from git) Date: Sun, 31 Dec 2023 18:45:00 GMT Message-Id: <202312311845.3BVIj0SW077770@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: dca037638300 - main - textproc/py-TatSu: New port: Generate Python parsers from grammars in a variation of EBNF List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dca0376383009c19cea98420455feb02ec2da8d9 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=dca0376383009c19cea98420455feb02ec2da8d9 commit dca0376383009c19cea98420455feb02ec2da8d9 Author: Yuri Victorovich AuthorDate: 2023-12-31 18:44:09 +0000 Commit: Yuri Victorovich CommitDate: 2023-12-31 18:44:58 +0000 textproc/py-TatSu: New port: Generate Python parsers from grammars in a variation of EBNF This is a successor to textproc/py-grako. --- textproc/Makefile | 1 + textproc/py-TatSu/Makefile | 30 ++++++++++++++++++++++++++++++ textproc/py-TatSu/distinfo | 3 +++ textproc/py-TatSu/pkg-descr | 10 ++++++++++ 4 files changed, 44 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 9626d9770b24..2582dca0305f 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1288,6 +1288,7 @@ SUBDIR += py-Morfessor SUBDIR += py-QDarkStyle SUBDIR += py-RTFDE + SUBDIR += py-TatSu SUBDIR += py-Tempita SUBDIR += py-accessible-pygments SUBDIR += py-acora diff --git a/textproc/py-TatSu/Makefile b/textproc/py-TatSu/Makefile new file mode 100644 index 000000000000..d9f381f5f8e5 --- /dev/null +++ b/textproc/py-TatSu/Makefile @@ -0,0 +1,30 @@ +PORTNAME= TatSu +DISTVERSION= 5.11.2 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Generate Python parsers from grammars in a variation of EBNF +WWW= https://tatsu.readthedocs.io/en/stable/ + +LICENSE= BSD4CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + +USES= python:3.11+ +USE_PYTHON= pep517 concurrent autoplist + +NO_ARCH= yes + +POST_PLIST+= fix-plist + +post-install: # workaround https://github.com/neogeny/TatSu/issues/333 + @${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/test + +fix-plist: + ${REINPLACE_CMD} -e 's|^.*/test/.*$$||' ${TMPPLIST} + +.include diff --git a/textproc/py-TatSu/distinfo b/textproc/py-TatSu/distinfo new file mode 100644 index 000000000000..668f22581a7d --- /dev/null +++ b/textproc/py-TatSu/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1704045545 +SHA256 (TatSu-5.11.2.tar.gz) = 5c29d9fad096ce9bb6c9b0758ee182bba6dbd6ba1a893540b3707dc2a4306626 +SIZE (TatSu-5.11.2.tar.gz) = 149641 diff --git a/textproc/py-TatSu/pkg-descr b/textproc/py-TatSu/pkg-descr new file mode 100644 index 000000000000..a9b64426c1a5 --- /dev/null +++ b/textproc/py-TatSu/pkg-descr @@ -0,0 +1,10 @@ +TatSu is a tool that takes grammars in a variation of EBNF as input, and outputs +memoizing (Packrat) PEG parsers in Python. + +TatSu can compile a grammar stored in a string into a tatsu.grammars.Grammar +object that can be used to parse any given input, much like the re module does +with regular expressions, or it can generate a Python module that implements the +parser. + +TatSu supports left-recursive rules in PEG grammars, and it honors +left-associativity in the resulting parse trees.