Automic VaultAutomic Vault

brew

Installer peg avec Homebrew, apk, apt, MacPorts, Nix, pacman, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de peg pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install peg

local Homebrew formula metadata

MacPortsvérifié · 94%
sudo port install peg

MacPorts ports tree · devel/peg/Portfile · Source: api.github.com

Linux

Alpine Linux apkvérifié · 92%
sudo apk add peg

Alpine Linux edge package indexes · peg · Source: dl-cdn.alpinelinux.org

Debian aptvérifié · 92%
sudo apt install peg

Debian stable package indexes · peg · Source: deb.debian.org

Nixvérifié · 92%
nix profile install nixpkgs#peg

nixpkgs package indexes · pkgs/by-name/pe/peg/package.nix · Source: api.github.com

Arch Linux pacmanvérifié · 92%
sudo pacman -S peg

Arch Linux sync databases · peg · Source: geo.mirror.pkgbuild.com

openSUSE zyppervérifié · 92%
sudo zypper install peg

openSUSE Tumbleweed package metadata · peg · Source: download.opensuse.org

aperçu

Résumé du paquet

Program to perform pattern matching on text

Commandes et alias

  • leg
  • peg

historique

Historique du projet et usages

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.

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

Pourquoi les passionnés de paquets s'y intéressent

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.

Chronologie

  • 2007-05-15: First public release, 0.1.1.
  • 2013-06-03: 0.1.11 added error actions, C++ support improvements, and Win32/Mac build files.
  • 2016-07-22: 0.1.18 added the `-P` option to disable `#line` directives.
  • 2023-03-06: 0.1.19 stable added experimental re-entrant parsing through `yyparsefrom_r()`.
  • 2023-11-19: 0.1.20 development version listed with experimental inline-action variables and semantic values.

Related projects

  • Bryan Ford's 2004 Parsing Expression Grammars paper is the formal grammar reference cited by the official page.
  • lex and yacc are the comparison point used by the official page and manual.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 10 plateformes.

Revue recommandée

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

Exécutables installés

CommandeTypeExpositionNote
legcliexécutable global
pegcliexécutable global

fraîcheur

Version et 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.

page générée2026-07-10
version du gestionnaire0.1.19
gestionnaire mis à jour2026-06-14
données localesOK
amontnot checked
dernière version détectéenon détecté

https://www.piumarta.com/software/peg/

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:peg
Version0.1.19
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/peg
Page d'accueilhttps://www.piumarta.com/software/peg/
Docs amonthttps://www.piumarta.com/software/peg
LicenceMIT
Archive sourcehttps://www.piumarta.com/software/peg/peg-0.1.19.tar.gz
Dernière mise à jour2026-06-14T14:47:59+02:00
Pulseupdated
Bouteilledisponible (sur arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepeg
Aliases
  • leg
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

Debian apt95%

peg 0.1.20+really0.1.18-1

recursive-descent parser generators for C

https://piumarta.com/software/peg/

sudo apt install peg
  • Section: devel
  • Architecture: amd64
  • 1 Dépendances
  • normalized package name match
  • Correspondance par : Peg
Debian stable package indexes · deb.debian.org · Debian stable package indexes: peg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

peg

nix profile install nixpkgs#peg
  • normalized package name match
  • Correspondance par : Peg
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pe/peg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

peg 0.1.18-1build1

recursive-descent parser generators for C

http://piumarta.com/software/peg/

sudo apt install peg
  • Section: universe/devel
  • Architecture: amd64
  • 1 Dépendances
  • normalized package name match
  • Correspondance par : Peg
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: peg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

peg 0.1.18-r1

Recursive-descent parser generators for C

https://www.piumarta.com/software/peg/

sudo apk add peg
  • License: MIT
  • Architecture: x86_64
  • Source Package: peg
  • 1 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : Peg
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: peg from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

peg-doc 0.1.18-r1

Recursive-descent parser generators for C (documentation)

https://www.piumarta.com/software/peg/

sudo apk add peg-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: peg
  • normalized package name match
  • Correspondance par : Peg
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: peg-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
pacman95%

peg 0.1.19-1

recursive-descent parser generators for C

http://piumarta.com/software/peg/

sudo pacman -S peg
  • License: MIT
  • Architecture: x86_64
  • normalized package name match
  • Correspondance par : Peg
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: peg from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

peg 0.1.20-1.7

Recursive-Descent parser generators for C

https://piumarta.com/software/peg/

sudo zypper install peg
  • License: MIT
  • Category: Development/Tools/Building
  • Architecture: x86_64
  • Source Package: peg
  • 1 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : Peg
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: peg from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

peg

sudo port install peg
  • normalized package name match
  • Correspondance par : Peg
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/peg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment