macOS
brew install peglocal Homebrew formula metadata
sudo port install pegMacPorts ports tree · devel/peg/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de peg pour les workflows d'agents IA.
installation
brew install peglocal Homebrew formula metadata
sudo port install pegMacPorts ports tree · devel/peg/Portfile · Source: api.github.com
sudo apk add pegAlpine Linux edge package indexes · peg · Source: dl-cdn.alpinelinux.org
sudo apt install pegDebian stable package indexes · peg · Source: deb.debian.org
nix profile install nixpkgs#pegnixpkgs package indexes · pkgs/by-name/pe/peg/package.nix · Source: api.github.com
sudo pacman -S pegArch Linux sync databases · peg · Source: geo.mirror.pkgbuild.com
sudo zypper install pegopenSUSE Tumbleweed package metadata · peg · Source: download.opensuse.org
aperçu
Program to perform pattern matching on text
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
leg | cli | exécutable global | |
peg | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://www.piumarta.com/software/peg/
métadonnées d'installation
| Clé du paquet | brew:peg |
|---|---|
| Version | 0.1.19 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/peg |
| Page d'accueil | https://www.piumarta.com/software/peg/ |
| Docs amont | https://www.piumarta.com/software/peg |
| Licence | MIT |
| Archive source | https://www.piumarta.com/software/peg/peg-0.1.19.tar.gz |
| Dernière mise à jour | 2026-06-14T14:47:59+02:00 |
| Pulse | updated |
| Bouteille | disponible (sur arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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 pegpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.