Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trescenzi/forkpiler
A simple compiler built in Haskell for my Senior year Compiler class.
https://github.com/trescenzi/forkpiler
Last synced: about 1 month ago
JSON representation
A simple compiler built in Haskell for my Senior year Compiler class.
- Host: GitHub
- URL: https://github.com/trescenzi/forkpiler
- Owner: trescenzi
- Created: 2013-02-05T19:23:24.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-14T16:09:12.000Z (over 11 years ago)
- Last Synced: 2023-03-22T15:07:59.521Z (almost 2 years ago)
- Language: Haskell
- Size: 707 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Read Me!
## Installing the Haskell Platform
You can find it [here](http://www.haskell.org/platform/).
It should be easy to install and run. To make sure it's installed run the command ghci. If you have issues add /Library/Haskell/bin to your path.## Installing Rexeg.PCRE
To run lexer you need the better regex. To install the better regex run:
cabal update
cabal install regex-pcre-builtin
You might get a bunch of warnings but it should install## Compiling the Compiler :)
Navigate to the directory in which all the .hs files are and run ghc --make Main.hs. Shouldn't take more than a couple seconds.Or! To be super cool just run cabal install in the root directory. This
will build everything cleanly and make it so you can run forkpiler
instead of having to use ./Main in the right folder and all that stuff.## Running the Compiler
If you used ghc --make ./Main in the directory you ran ghc. Make sure the file is in the same folder.If you used cabal install run it as forkpiler instead. This
can be done in any folder on your computer.# Assignment 1
All of the test files and the test writeup are in the assignment 1 folder. All of the working code is currently on branch assignment1. Just pull the repo and checkout assignment1 and everything will show up.# Assignment 2
All of the files for the second assignment are in the assignment 2 folder. Currently an assignment 2 branch has not been made. Once/if it is I'll update this. If there never is than master is where the current code will be.