textproc/peg 0.1.19_1 FreeBSD
Recursive-descent parser generators for C
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- textproc
- Package size
- 33.6 KiB, 95.8 KiB installed
Description
peg and leg are tools for generating recursive-descent parsers: programs that perform pattern matching on text. They process a Parsing Expression Grammar (PEG) [Ford 2004] to produce a program that recognises legal sentences of that grammar. peg processes PEGs written using the original syntax described by Ford; leg processes PEGs written using slightly different syntax and conventions that are intended to make it an attractive replacement for parsers built with lex and yacc. Unlike lex and yacc, peg and leg support unlimited backtracking, provide ordered choice as a means for disambiguation, and can combine scanning (lexical analysis) and parsing (syntactic analysis) into a single activity.
[Ford 2004] Bryan Ford, Parsing Expression Grammars: A Recognition-Based Syntactic Foundation. ACM SIGPLAN Symposium on Principles of Programming Languages (POPL), 2004.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/peg | 0.1.19_1 |
| DragonFly | textproc/peg | 0.1.19_1 |
Install
Binary package:
pkg install peg
From the ports tree:
cd /usr/ports/textproc/peg/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= peg>0:textproc/peg
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 | 0.1.19_1 | 0.1.19_1 | 0.1.18 | 0.1.19_1 | 0.1.19_1 |
| FreeBSD:14:quarterly | 0.1.19_1 | 0.1.19_1 | n/a | 0.1.19_1 | 0.1.19_1 |
| FreeBSD:15:latest | 0.1.19_1 | 0.1.19_1 | n/a | 0.1.19_1 | 0.1.19_1 |
| FreeBSD:15:quarterly | 0.1.19_1 | 0.1.19_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.1.19_1 | 0.1.19_1 | 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 3
No port depends on this one.
Configuration
No options to configure.
- USES
- gmake
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| peg-0.1.19.tar.gz | 136241 | 0013dd83a6739778445a64bced3d74b9f50c07553f86ea43333ae5fab5c2bbb4 |
Master sites 1
- https://www.piumarta.com/software/peg/
Commit history 0
No commits in the history this site was built from.