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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/lua-lpeg | 1.1.0 |
| NetBSD | devel/lua-lpeg | 1.1.0nb2 |
| DragonFly | devel/lua-lpeg | 1.1.0 |
| MidnightBSD | devel/lua-lpeg | 1.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.1.0 | 1.1.0 | 1.0.2_1 | 1.1.0 | 1.1.0 |
| FreeBSD:14:quarterly | 1.1.0 | 1.1.0 | n/a | 1.1.0 | 1.1.0 |
| FreeBSD:15:latest | 1.1.0 | 1.1.0 | n/a | 1.1.0 | 1.1.0 |
| FreeBSD:15:quarterly | 1.1.0 | 1.1.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.1.0 | 1.1.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| File | Size | SHA256 |
|---|---|---|
| lpeg-1.1.0.tar.gz | 78042 | 4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a |
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.