BSD Ports

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

SystemPortVersion
FreeBSDtextproc/peg0.1.19_1
DragonFlytextproc/peg0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.1.19_10.1.19_10.1.180.1.19_10.1.19_1
FreeBSD:14:quarterly0.1.19_10.1.19_1n/a0.1.19_10.1.19_1
FreeBSD:15:latest0.1.19_10.1.19_1n/a0.1.19_10.1.19_1
FreeBSD:15:quarterly0.1.19_10.1.19_1n/an/an/a
FreeBSD:16:latest0.1.19_10.1.19_1n/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 3

No port depends on this one.

Configuration

No options to configure.

USES
gmake
Service scripts
none

Files

distinfo 1
FileSizeSHA256
peg-0.1.19.tar.gz1362410013dd83a6739778445a64bced3d74b9f50c07553f86ea43333ae5fab5c2bbb4
Master sites 1
  • https://www.piumarta.com/software/peg/

Commit history 0

No commits in the history this site was built from.