Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

yusaira-khan/minilang-compiler-2016

Repository files navigation

Yusaira Khan
ID: 260526007
Comp 520 Assignment 2

Lexer generated from Lexer.x through Alex
Parser generated from Parser.y through Happy
Main file is Main.hs
Link to executable is ./minilang
State machin for Parser available in Parser.info

Interface: "./minilang  filepath"
Programs must have atleast 1 declaration and 1 statement

Help for Alex and Happy and error reporting taken from:
https://github.com/bjwbell/NewL-Compiler
https://github.com/jmoy/alexhappy
http://stackoverflow.com/questions/4243117/how-to-catch-and-ignore-a-call-to-the-error-function
https://www.haskell.org/alex/doc/html/index.html
https://www.haskell.org/happy/doc/html/index.html
http://stackoverflow.com/questions/8465006/how-to-concatenate-2-strings-in-c

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published