How To Add A New Language Feature To OPA
summary
Adds string interpolation to Rego in OPA 1.12 and describes exactly what changed: scanner/parser gains two new tokens, the AST gets a template string node, the compiler lowers that node to a built‑in called template_string, and the topdown interpreter implements recursive evaluation with a single-value check and concatenation. Also covers the follow-up work: editor grammars, go‑to‑definition support, docs updates and lint rules to roll the feature across the OPA ecosystem.
AI-written summary · about
related talks
27mParsing, Compiling, and Static Metaprogramming
29mBuilding a Language by Leandro Ostera (Eng) | JSConfAM19
26mDesign a new language in JS: from zero to autocomplete
17mSupporting a decade of opam
27mDefault Disambiguation in Online Parsers
29mMy Little Parser: Tooling is Magic
27mAbusing Preprocessor ASTs
31mThe Different Transformation Stages of AOT Compilers
