zetwhite / MakeAlexHappy

making LISP using Haskell(Alex and Happy)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MINI Scheme Interperter

This is a Mini scheme Interpreter made with Haskell (Alex as lexical analyser, Happy as parser).
[!] This is not a perfect language or interpreter. I just made this as term project of univ lecture.
[!] I'm stilling working on this project. So, this might be a not final version.

Build and Run

# first you need to download haskell compiler(ghc)  - https://www.haskell.org/ghc/ 
# build 
make 
# run 
Main.exe
#try example code under /Example Folder

Note

  • AST.hs : AST component data type, Symbol table data type
  • Enviroment.hs : Eval & Apply working part
  • main.hs : REPL
  • Tokens.x : scanner, input file of Alex
  • Grammar.y : parser, input file of Happy

Reference

About

making LISP using Haskell(Alex and Happy)


Languages

Language:Haskell 90.2%Language:Yacc 6.3%Language:Logos 2.0%Language:Scheme 1.0%Language:Makefile 0.5%