BSD Ports

devel/lua-lpeg 1.1.0 FreeBSD

PEG-based pattern-matching library for Lua

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
devel
Package size
25.2 KiB, 59.8 KiB installed

Description

LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).

Following the Snobol tradition, LPeg defines patterns as first-class objects. That is, patterns are regular Lua values (represented by userdata). The library offers several functions to create and compose patterns. With the use of metamethods, several of these functions are provided as infix or prefix operators. On the one hand, the result is usually much more verbose than the typical encoding of patterns using the so called regular expressions (which typically are not regular expressions in the formal sense). On the other hand, first-class patterns allow much better documentation (as it is easy to comment the code, to break complex definitions in smaller parts, etc.) and are extensible, as we can define new functions to create and compose patterns.

In the other systems

SystemPortVersion
FreeBSDdevel/lua-lpeg1.1.0
NetBSDdevel/lua-lpeg1.1.0nb2
DragonFlydevel/lua-lpeg1.1.0
MidnightBSDdevel/lua-lpeg1.1.0

Install

Binary package:

pkg install lua51-lpeg

From the ports tree:

cd /usr/ports/devel/lua-lpeg/ && make install clean

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

RUN_DEPENDS=	lua51-lpeg>0:devel/lua-lpeg

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.1.01.1.01.0.2_11.1.01.1.0
FreeBSD:14:quarterly1.1.01.1.0n/a1.1.01.1.0
FreeBSD:15:latest1.1.01.1.0n/a1.1.01.1.0
FreeBSD:15:quarterly1.1.01.1.0n/an/an/a
FreeBSD:16:latest1.1.01.1.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

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

Build dependencies 2
Run dependencies 2

Configuration

No options to configure.

USES
lua:module
Service scripts
none
Flavors
lua52-lpeg-1.1.0, lua53-lpeg-1.1.0, lua54-lpeg-1.1.0, lua55-lpeg-1.1.0

Files

distinfo 1
FileSizeSHA256
lpeg-1.1.0.tar.gz780424b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a
Master sites 2
  • https://www.inf.puc-rio.br/~roberto/lpeg/
  • LOCAL/sunpoet

Commit history 0

No commits in the history this site was built from.