🍺 BREW Explorer

← all formulae

lpeg

brew install lpeg v1.1.0_2 MIT

Parsing Expression Grammars library for Lua, enabling pattern matching and parsing via PEG syntax.

Why you might care

LPeg lets Lua developers build parsers and pattern matchers more expressively than regex, using Parsing Expression Grammars. It's lighter and more flexible than traditional parser generators, making it ideal for DSLs, config parsing, and text transformation in Lua scripts or embedded Lua runtimes.

Categories

Alternatives

re (Lua) ANTLR Pest
7.2k
30-day installs · #456
32.7k
90-day · #370
107.3k
365-day · #397

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "re (Lua)",
    "ANTLR",
    "Pest"
  ],
  "build_dependencies": [
    "lua",
    "lua@5.4",
    "luajit"
  ],
  "categories": [
    "library",
    "parser",
    "lua-library"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Parsing Expression Grammars For Lua",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:53+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "lpeg",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://www.inf.puc-rio.br/~roberto/lpeg/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "LPeg - Parsing Expression Grammars For Lua",
  "installs_30d": 7155,
  "installs_365d": 107324,
  "installs_90d": 32684,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:44:59+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "lpeg",
  "oldnames": [],
  "one_liner": "Parsing Expression Grammars library for Lua, enabling pattern matching and parsing via PEG syntax.",
  "optional_dependencies": [],
  "rank_30d": 456,
  "rank_365d": 397,
  "rank_90d": 370,
  "raw_hash": "64d491835362fccb",
  "recommended_dependencies": [],
  "revision": 2,
  "ruby_source_path": "Formula/l/lpeg.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "lua",
    "lua@5.4",
    "luajit"
  ],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.1.0",
  "versioned_formulae": [],
  "why_use_this": "LPeg lets Lua developers build parsers and pattern matchers more expressively than regex, using Parsing Expression Grammars. It\u0027s lighter and more flexible than traditional parser generators, making it ideal for DSLs, config parsing, and text transformation in Lua scripts or embedded Lua runtimes."
}