Skip to content

cawilliams/happy-haskell-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Simple Haskell subset interpreter on Haskell itself.

Код простого интерпретатора подмножества языка Haskell на самом Haskell.

https://habrahabr.ru/post/335366/

Installation

sudo apt-get install haskell-platform alex happy

Build

alex Lex.x
happy Synt.y
ghc Interpreter.hs

Usage

./Interpreter

Test examples:

let a = 2 in a*2`
4
let a = 8 in (let b = a - 1 in a*b)
56