How to implement a language using a functional language?

I prefer Haskell.

I already know How to create my own language with a procedural language (for example, C, Java, Python, etc.).

But I know how to create your own language with a functional language (eg Haskell, Clojureand Scala).

I had read:

Internet resources

Books

StackOverflow (but with procedural language)

Source

/? .

+5
3

: . .

- , ( ), . ML ( , , , ).

Racket ( PLT Scheme) - , .

+4

:

, - .

+3

Take a look also at Compiler.HOOPL and Control.Unification and uuagc attribute grammar preprocessor. You can also read https://wiki.ittc.ku.edu/lambda/images/e/e3/Modular-interpreters.pdf when writing modular interpreters in Haskell. Also note that Parsec is not very fast and for non-toy projects, Happy / Alex could be better.

0
source

All Articles