Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adueck/hlang

A little exercise in creating a language in Haskell
https://github.com/adueck/hlang

Last synced: about 1 month ago
JSON representation

A little exercise in creating a language in Haskell

Awesome Lists containing this project

README

        

# hlang

A little exercise in creating a language in Haskell

```
# This is a comment
(let
((x (+ 1 1))
(y (+ x 2))
(myF (lambda m (+ 1 (* m 2)))))
(myF y))
```

Evaluates to `12`

To run the REPL:

```
$ runghc Main.hs
```

To evaluate a file:

```
$ runghc Main.hs example.hp
```