Independent developer prototypes projectional viewer to hide code implementation detail
A developer built an experimental one-way projectional viewer that lets programmers toggle implementation detail out of view in source code without editing it back, using a Rebol phone-number parsing grammar as the test case. Rather than removing plumbing code like value-capturing and print statements, the tool simply elides them from the reading view so the underlying grammar structure stands out.
GoKawiil's interpretation of the reporting above, not reported fact.
Most editors force developers to either see all mechanical detail or lose the source entirely; a lightweight, read-only elision layer offers a middle path that could make complex grammars and DSLs easier to audit without the overhead of full projectional editing systems. If successful, this approach could encourage composing many small special-purpose languages within one codebase instead of forcing everything into a single general-purpose paradigm.
- The experiment tests a one-way projectional viewer that hides but preserves implementation detail in source code.
- It uses a Rebol PEG phone-number grammar to show how capture and action code clutters the visible grammar structure.
- The approach avoids the harder problem of full round-trip projectional editing by only supporting read-only elision.
Crafting Interpreters by Robert Nystrom — If you're deep in PEG grammars and wondering how much plumbing a parser really needs, Crafting Interpreters walks you through building two complete language implementations from scanner to interpreter. It's a hands-on companion for anyone experimenting with editors, grammars, and separating a language's structure from its mechanics.
See Crafting Interpreters by Robert Nystrom on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.Source: programmingsimplicity.substack.com — Paul Tarvydas, 2026-09-08
Published there as: “Experiment – Projectional Viewer”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.