Published on Defining ASTs with dynamic classes in JavascriptJanuary 3, 2024aststandaloneDefining the classes of an AST can be cumbersone due to the high amount of nodes and redundant code. Dynamic classes in JS can make this process much easier.
Published onAugust 9, 2022Defining languages with sets - A horrible yet correct alternative to grammarsgrammarsformal-languagesstandaloneGrammars define a language, and a language is a set of strings... So is it possible to define a language by directly defining the set? Somehow it is