devel/lua-lpeg 1.1.0 DragonFly
PEG-based pattern-matching library for Lua
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel
- Package size
- 21.9 KiB, 50.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 |
|---|---|---|
| DragonFly | devel/lua-lpeg | 1.1.0 |
| FreeBSD | devel/lua-lpeg | 1.1.0 |
| NetBSD | devel/lua-lpeg | 1.1.0nb2 |
| MidnightBSD | devel/lua-lpeg | 1.1.0 |
Install
Binary package:
pkg install lua51-lpeg
From DPorts:
cd /usr/dports/devel/lua-lpeg && make install clean
Dependencies
Run dependencies 1
Required by 3
Configuration
No options to configure.
- Service scripts
- none
- Flavors
lua52-lpeg-1.1.0,lua53-lpeg-1.1.0,lua54-lpeg-1.1.0