From nobody Sat Aug 17 20:45:02 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 4WmW7y74yzz5Tg0s; Sat, 17 Aug 2024 20:45:02 +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 4WmW7y5Jm5z4MYT; Sat, 17 Aug 2024 20:45:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723927502; 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=yg3BaIrfNsWzexCGl1q33LXzjBQVTlbokMcSYZe67cc=; b=EJ2fsqBZEuGt0H/8tOzEH3rKaAqRZVegYXcnoma/BMC60l1ax3IWXGPvYXT6EKFcJ1ln5H AHf8r44+mpiYZfDrWJ3U4ZcH+DFuy5/Abuhkd5e7d7wmnldT/3JAXxePNaBrExDhWVz++G Nwxe+s8tgmi6ZSfx5EH7/q9B/bnFNkhVq2XPHcqB3YQqWxVfjtWmXELuSkCTzgie8hVqDt Z0zpT6ZiGLzjkdDv07Amw5lr6AvG9FGA/+ND0WybI35cnf6kDAYeuea5iIAKDoIXggUOFJ gq0Y3AB7lXNksV0dmyHOMI4TQRIg98Syn1R52pdk+P/p1ZS+g6Mj0RZrTjnVTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723927502; a=rsa-sha256; cv=none; b=vSSIqp5+qCeCU2UzOPvx0a0y/sSFZNA1eIioJ1tFMSYxvwMMM60uj1ExDSCxZaRyGsc21t xJ/YO+L1hsYRf8XI5ClowXTmlZpd1LhUAxek1L00Z7Se97wzs8oadcJxv6AgjY9camJ4Og tGvlhWV+YnREgMvw0WSkgBiub8FKZp6/7pHSv+xonB8advQr5f+k30QPQgHZ8FiL8V676D UxfdFtNXGuUN2gGe2O5cP3nnhRHKDpTm6FVO7cQGvyfUXTa+hAz1Cq+bEw7pjeZOnIxHBG zeuxW2sAX7K+//vbi0SQTnakUmJ7hzfEkZNN9IJA7D+4a1qazoZ6GpxuBP6TFw== 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=1723927502; 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=yg3BaIrfNsWzexCGl1q33LXzjBQVTlbokMcSYZe67cc=; b=wFanr/A4bX08Ba8wIs3nLD0Jo8aQXtmuaXB6VAmSMjWo0BRC8SaWzF0j5TWYCi+ZYDYk0P ObDdf4T6BkhpAjFF2xM0A4a+c0o76quLyiGy16GAwNzaA/4+B0UthF7zxSFIxwSGV66Tu/ a3tbb2Lgk0eTnq8zwaO2z7AeYTwdBEvQuOMjX5ZKcMCC/F8zMOtVTu8p3KT1GW1P3VuFY4 pGlYs0wi/WLmSmzrRz7JSZcMVdkLw8IeNs/c4OVurU/7tamL5CQLdfnzCfwGy14PM68Oiu 57cAQmxOIRCq+tN6wo71+uxHCuZ1uhZ11VToiWo1lctbyIMxfOmDEFvTCzBAnQ== 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 4WmW7y4wVtz14l3; Sat, 17 Aug 2024 20:45:02 +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 47HKj2Xp043501; Sat, 17 Aug 2024 20:45:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47HKj2eA043498; Sat, 17 Aug 2024 20:45:02 GMT (envelope-from git) Date: Sat, 17 Aug 2024 20:45:02 GMT Message-Id: <202408172045.47HKj2eA043498@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 37457c216be0 - main - lang/py-sly: Python implementation of the lex and yacc tools 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: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 37457c216be0862266bdf50275f9a77f8201d824 Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=37457c216be0862266bdf50275f9a77f8201d824 commit 37457c216be0862266bdf50275f9a77f8201d824 Author: Shapovalov Alexey AuthorDate: 2024-07-05 06:44:24 +0000 Commit: Gleb Popov CommitDate: 2024-08-17 20:44:41 +0000 lang/py-sly: Python implementation of the lex and yacc tools Sponsored by: Serenity Cybersecurity, LLC Co-authored-by: Gleb Popov --- lang/Makefile | 1 + lang/py-sly/Makefile | 21 +++++++++++++++++++++ lang/py-sly/distinfo | 3 +++ lang/py-sly/pkg-descr | 14 ++++++++++++++ 4 files changed, 39 insertions(+) diff --git a/lang/Makefile b/lang/Makefile index e6e8d28a4eb1..b57b3d5a6d14 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -295,6 +295,7 @@ SUBDIR += py-dhall SUBDIR += py-hy SUBDIR += py-lupa + SUBDIR += py-sly SUBDIR += py-textX SUBDIR += python SUBDIR += python-doc-html diff --git a/lang/py-sly/Makefile b/lang/py-sly/Makefile new file mode 100755 index 000000000000..2183db6eddbd --- /dev/null +++ b/lang/py-sly/Makefile @@ -0,0 +1,21 @@ +PORTNAME= sly +PORTVERSION= 0.5 +CATEGORIES= lang python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= awoonyaa@gmail.com +COMMENT= Python implementation of the lex & yacc tools +WWW= https://pypi.org/project/sly/ + +LICENSE= MIT + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/lang/py-sly/distinfo b/lang/py-sly/distinfo new file mode 100755 index 000000000000..854e4d46bdbd --- /dev/null +++ b/lang/py-sly/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703100021 +SHA256 (sly-0.5.tar.gz) = 251d42015e8507158aec2164f06035df4a82b0314ce6450f457d7125e7649024 +SIZE (sly-0.5.tar.gz) = 66702 diff --git a/lang/py-sly/pkg-descr b/lang/py-sly/pkg-descr new file mode 100755 index 000000000000..0bdfac44b337 --- /dev/null +++ b/lang/py-sly/pkg-descr @@ -0,0 +1,14 @@ +SLY is a 100% Python implementation of the lex and yacc tools commonly used to +write parsers and compilers. Parsing is based on the same LALR(1) algorithm +used by many yacc tools. + +SLY provides very extensive error reporting and diagnostic information +to assist in parser construction. The original implementation was +developed for instructional purposes. As a result, the system tries to +identify the most common types of errors made by novice users. + +SLY provides full support for empty productions, error recovery, +precedence specifiers, and moderately ambiguous grammars. + +SLY uses various Python metaprogramming features to specify lexers and +parsers. There are no generated files or extra steps involved.