Demand-driven attribute grammar evaluator over algebraic scope graphs
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 99/100 with only 5 stars
- Accepts sponsorship (github)
// how to help
// readme
gen-scope
Demand-driven Higher-Order Attribute Grammar evaluator over algebraic scope graphs, implemented as a pure Nix library.
gen-scope is a hybrid HOAG/RAG evaluator: Higher-Order Attribute Grammars (Vogt et al., 1989) for dynamic node synthesis, Reference Attribute Grammars (Hedin, 2000) for cross-node references via import edges. It leverages Nixโs native lazy evaluation for attribute computation, memoization, and cycle detection โ we do not build an AG evaluator, Nix is the evaluator.
gen-scope is generic. It has no knowledge of NixOS, aspects, policies, or system configuration. It provides evaluation machinery; consumers define what to compute.
gen-scope is scope-engine โ owner testimony, 2026-08-18, verbatim. github:sini/scope-engine and github:sini/gen-scope name the same repository; there is no divergent second implementation.