macOS
brew install peglocal Homebrew formula metadata
sudo port install pegMacPorts ports tree · devel/peg/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für peg in AI-Agent-Workflows.
Installation
brew install peglocal Homebrew formula metadata
sudo port install pegMacPorts ports tree · devel/peg/Portfile · Quelle: api.github.com
sudo apk add pegAlpine Linux edge package indexes · peg · Quelle: dl-cdn.alpinelinux.org
sudo apt install pegDebian stable package indexes · peg · Quelle: deb.debian.org
nix profile install nixpkgs#pegnixpkgs package indexes · pkgs/by-name/pe/peg/package.nix · Quelle: api.github.com
sudo pacman -S pegArch Linux sync databases · peg · Quelle: geo.mirror.pkgbuild.com
sudo zypper install pegopenSUSE Tumbleweed package metadata · peg · Quelle: download.opensuse.org
Überblick
Program to perform pattern matching on text
Verlauf
peg and leg are recursive-descent parser generators for C. They process Parsing Expression Grammars and generate C parsers, with `peg` following Bryan Ford's original PEG syntax and `leg` using conventions intended as an alternative to lex and yacc.
Ian Piumarta's official page lists peg/leg as tools for generating recursive-descent parsers from Parsing Expression Grammars. The first public release in the official version history is 0.1.1 on 2007-05-15.
The manual page explains that peg reads grammar files or standard input and generates C source defining `yyparse()`, while leg uses a syntax intended to make it attractive to users familiar with lex and yacc workflows.
The official version history shows steady maintenance through 0.1.19 stable in 2023, including reentrant parsing support, error actions, UTF-8 fixes, C++ support improvements, and Windows/Mac build files.
peg/leg spread through Unix-like package managers as a small C parser-generation tool: the input metadata lists Homebrew, Debian, Ubuntu, Arch, MacPorts, Nix, Alpine, and openSUSE package names.
Its niche is smaller than yacc-family tools, but it remains useful where a project wants PEG-style ordered choice, unlimited backtracking, and combined scanning and parsing in generated C.
Typical use is to run `peg` or `leg` over a grammar file and compile or include the generated C source in a client program.
The official manual documents options such as `-o` for output file selection, `-P` for suppressing `#line` directives, `-v` for verbose mode, and `-V` for version output.
peg/leg is package-manager-friendly because it is a compact C command-line tool with a stable manual page, source tarballs, and a long version history.
For package nerds it is also a useful contrast with lex/yacc: a small PEG-based generator that produces embeddable C parsers without requiring a larger parser framework.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
leg | cli | globales Executable | |
peg | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://www.piumarta.com/software/peg/
Installationsmetadaten
| Paketschlüssel | brew:peg |
|---|---|
| Version | 0.1.19 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/peg |
| Homepage | https://www.piumarta.com/software/peg/ |
| Upstream-Dokumentation | https://www.piumarta.com/software/peg |
| Lizenz | MIT |
| Quellarchiv | https://www.piumarta.com/software/peg/peg-0.1.19.tar.gz |
| Zuletzt aktualisiert | 2026-06-14T14:47:59+02:00 |
| Pulse | updated |
| Bottle | verfügbar (auf arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | peg |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
peg 0.1.20+really0.1.18-1
recursive-descent parser generators for C
https://piumarta.com/software/peg/
sudo apt install pegpeg
nix profile install nixpkgs#pegpeg 0.1.18-1build1
recursive-descent parser generators for C
http://piumarta.com/software/peg/
sudo apt install pegpeg 0.1.18-r1
Recursive-descent parser generators for C
https://www.piumarta.com/software/peg/
sudo apk add pegpeg-doc 0.1.18-r1
Recursive-descent parser generators for C (documentation)
https://www.piumarta.com/software/peg/
sudo apk add peg-docpeg 0.1.19-1
recursive-descent parser generators for C
http://piumarta.com/software/peg/
sudo pacman -S pegpeg 0.1.20-1.7
Recursive-Descent parser generators for C
https://piumarta.com/software/peg/
sudo zypper install pegpeg
sudo port install pegQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.