From nobody Thu Jun 9 23:19:24 2022 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 8626D83C1B0; Thu, 9 Jun 2022 23:19:24 +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 4LK0RJ3MLYz4d6r; Thu, 9 Jun 2022 23:19:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654816764; 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=oMw+my0PRof69jzHBNsSTDo5BtzszUbKtcDj0z2Cb0o=; b=qJcttkQrZ2HV3GKjwwCdRtb+MxnCWh/dfgo0WM2qbxvhgt8p2+dAd6/n2mGHyujh6ZrC5Q xqN22pFOyTE506ydWDKGiq3g0UEd7N3/8VsxdOpz+K4APYVJpNqNJdH+dtzZr6V/t7lUmn AbfQGJ8yjAZOIb4i6K7LqekksfSHS8TfL4DH876vKtS60c450K9dVZu+EVKC+s1xzj0laZ +WIKRUBL2BCpT3Mnb8VDP6nY6Y/EmZEFH5x0K/pJl6vyPDHrZM93TZaQmwlDIxjlvqlSVi MkHVhRWInqAm6VYQbc/hLX64CnRj3JUdhGOBsHHDOG9CWShWY8/6MMKN0liX+Q== 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 536B652C1; Thu, 9 Jun 2022 23:19:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 259NJO3d042468; Thu, 9 Jun 2022 23:19:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 259NJOpj042467; Thu, 9 Jun 2022 23:19:24 GMT (envelope-from git) Date: Thu, 9 Jun 2022 23:19:24 GMT Message-Id: <202206092319.259NJOpj042467@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: d326e599801e - main - devel/py-parsley: Add py-parsley 1.3 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d326e599801e46d5ec7351747348fc1942cd132f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654816764; 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=oMw+my0PRof69jzHBNsSTDo5BtzszUbKtcDj0z2Cb0o=; b=bj2knwfUg28Am09yL4TWYwlqv+AlIbwXvySX6Leq7K1M/tusw6PYJ2RPSpLEzNn5XQkhe7 Vce39E5gz6M7+7COx9o3bJA+DwbShk2IvZ3NeJDncEsJQapTKULae0fNmNdIDqQdICFFe2 ca7ScZYtFFpuCOT/tR0LGyEj99ea6hN1oWDICkxQTHIVZP9QG2mxKpzBzgrdAxaP6zus8r e8vlgLLdOuk9olxKEjwKI0cAF6Y54Yf3cHiJMIHzrpbYKK08MEo2o5UGAhLA8qiTRoKpGH cCPlWXQTooIZ/SajNvZOTtNLFDe6++NA1m55xdo4blbx9bcpSmczQd200kFBUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654816764; a=rsa-sha256; cv=none; b=vTlbmoTf/u9X7wqawnBZYRTbrZ3lGsFb4zIZKORUnWXsOYCZ9c7Qb4mjbxIEORF83q7p3o 04yAxAW68ckquwuu06CWNH6mlfrSkkG/S1KYyGoMvJ/gY9lvhnc6+viThrrxbUz4gSy5AW vm7uXYV0uwE8Mr9+yKAzYHX/bgkttND9eNFyjAyKYd85qBIvRucNhNEk9y0GUTMmryVdDE dVVU/Q36tGM9ukC/jxmOfdaOFZLMkXARj2MR4Z37vLF2yRgEDqR9MmQXtFDpHWGKYkLQlL hikHjw47dU7uIc2KbAz+9xHw+kms2CkoGx+ANk5htZqgPfrF9dgVDAY3DImfmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d326e599801e46d5ec7351747348fc1942cd132f commit d326e599801e46d5ec7351747348fc1942cd132f Author: Po-Chuan Hsieh AuthorDate: 2022-06-09 23:09:37 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-06-09 23:15:59 +0000 devel/py-parsley: Add py-parsley 1.3 Parsley is a parsing library for people who find parsers scary or annoying. I wrote it because I wanted to parse a programming language, and tools like PLY or ANTLR or Bison were very hard to understand and integrate into my Python code. Most parser generators are based on LL or LR parsing algorithms that compile to big state machine tables. It was like I had to wake up a different section of my brain to understand or work on grammar rules. Parsley, like pyparsing and ZestyParser, uses the PEG algorithm, so each expression in the grammar rules works like a Python expression. In particular, alternatives are evaluated in order, unlike table-driven parsers such as yacc, bison or PLY. Parsley is an implementation of OMeta, an object-oriented pattern-matching language developed by Alessandro Warth. WWW: https://github.com/pyga/parsley --- devel/Makefile | 1 + devel/py-parsley/Makefile | 21 +++++++++++++++++++++ devel/py-parsley/distinfo | 3 +++ devel/py-parsley/pkg-descr | 16 ++++++++++++++++ 4 files changed, 41 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 8298d0653968..b3d00daed7ad 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4926,6 +4926,7 @@ SUBDIR += py-parallax SUBDIR += py-parameterized SUBDIR += py-parsedatetime + SUBDIR += py-parsley SUBDIR += py-parver SUBDIR += py-pastel SUBDIR += py-patch diff --git a/devel/py-parsley/Makefile b/devel/py-parsley/Makefile new file mode 100644 index 000000000000..8a44c4c0e334 --- /dev/null +++ b/devel/py-parsley/Makefile @@ -0,0 +1,21 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= parsley +PORTVERSION= 1.3 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= Parsley-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Parsing and pattern matching made easy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-parsley/distinfo b/devel/py-parsley/distinfo new file mode 100644 index 000000000000..59a04da00c77 --- /dev/null +++ b/devel/py-parsley/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1654774040 +SHA256 (Parsley-1.3.tar.gz) = 9444278d47161d5f2be76a767809a3cbe6db4db822f46a4fd7481d4057208d41 +SIZE (Parsley-1.3.tar.gz) = 99616 diff --git a/devel/py-parsley/pkg-descr b/devel/py-parsley/pkg-descr new file mode 100644 index 000000000000..87e89781153a --- /dev/null +++ b/devel/py-parsley/pkg-descr @@ -0,0 +1,16 @@ +Parsley is a parsing library for people who find parsers scary or annoying. I +wrote it because I wanted to parse a programming language, and tools like PLY or +ANTLR or Bison were very hard to understand and integrate into my Python code. +Most parser generators are based on LL or LR parsing algorithms that compile to +big state machine tables. It was like I had to wake up a different section of my +brain to understand or work on grammar rules. + +Parsley, like pyparsing and ZestyParser, uses the PEG algorithm, so each +expression in the grammar rules works like a Python expression. In particular, +alternatives are evaluated in order, unlike table-driven parsers such as yacc, +bison or PLY. + +Parsley is an implementation of OMeta, an object-oriented pattern-matching +language developed by Alessandro Warth. + +WWW: https://github.com/pyga/parsley