BSD Ports

devel/py-parsley 1.3_1 FreeBSD

Parsing and pattern matching made easy

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
devel, python
Package size
198.9 KiB, 2053.8 KiB installed

Description

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.

In the other systems

SystemPortVersion
FreeBSDdevel/py-parsley1.3_1
DragonFlydevel/py-parsley1.3_1
HardenedBSDdevel/py-parsley1.3_1
GhostBSDdevel/py-parsley1.3_1

Install

Binary package:

pkg install py312-parsley

From the ports tree:

cd /usr/ports/devel/py-parsley/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-parsley>0:devel/py-parsley

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.3_11.3_11.31.3_11.3_1
FreeBSD:14:quarterly1.3_11.3_1n/a1.3_11.3_1
FreeBSD:15:latest1.3_11.3_1n/a1.3_11.3_1
FreeBSD:15:quarterly1.3_11.3_1n/an/an/a
FreeBSD:16:latest1.3_11.3_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
Parsley-1.3.tar.gz996169444278d47161d5f2be76a767809a3cbe6db4db822f46a4fd7481d4057208d41
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.