Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/adueck/hlang
- Owner: adueck
- Created: 2024-07-13T14:40:42.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T00:03:29.000Z (5 months ago)
- Last Synced: 2024-10-12T19:35:52.464Z (2 months ago)
- Language: Haskell
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```