"Domain-Specific Languages" in Julia

I have had some great experiences with the instaparse library in Clojure. It’s a nearly magical parser generator. Using mostly educated guesswork and a scrape of the yacc for ANSI C, I was able in just a few hours to write an embedded DSL for rewriting Yakindu finite-state-machines, expressed in C-like syntax, in my Clojure programs. If I were doing serious DSL’ing in Julia, I’d be tempted to use instaparse as a guide.

1 Like