3 ms·
You might want to take a look at Haskell (Template Haskell) or Lisp/Clojure macro system. I haven't used Lisp yet, but I am working in Haskell currently. Here i
by matijash 7y ago
You might want to take a look at Haskell (Template Haskell) or Lisp/Clojure macro system. I haven't used Lisp yet, but I am working in Haskell currently.
Here is a presentation that illustrates code generation in Haskell well, although it requires some Haskell knowledge: https://www.slideshare.net/kizzx2/template-haskell-tutorial https://www.slideshare.net/kizzx2/template-haskell-tutorial
Haskell is also a good choice for writing DSLs and embedded DSLs.
Do you have a specific problem you would like to solve?