Skip to content

Instantly share code, notes, and snippets.

View lcanady's full-sized avatar

Lem Canady lcanady

  • DigiBear Creative
  • Salem, OR
  • 22:25 (UTC -07:00)
  • X @lcanady
View GitHub Profile
// ============================================================================
// MUX Softcode Grammar — PEG.js / Peggy
//
// Parses TinyMUX 2.x / PennMUSH softcode stored in attribute values.
// Produces a typed AST suitable for analysis, transformation, and linting.
//
// Allowed start rules: "Start" (attribute value), "LockExpr" (lock key)
//
// Install Peggy: npm install -g peggy
// Compile: peggy --allowed-start-rules Start,LockExpr mux-softcode.pegjs