Skip to content

Aukeijzer/2-Arrow

Repository files navigation

Arrow

A framework for the Arrow assignment of the course Talen & Compilers at the University of Utrecht.

Alex and Happy

If you use an up-to-date Cabal, you should be able to simply code in the .x and .y files. Running cabal build or cabal run will compile the alex and happy code into Haskell files, and compile your project with those, without ever showing them to you.

You can also manually call the alex and happy executables to do this first step, and then run ghc(i) on the resulting Haskell files, but then you have to remember to do so on each change: Not recommended!

Testing

To test your lexer and parser, you can simply run cabal run, which executes main in Main.hs. Try your parser and lexer on different inputs, the examples directory contains a few .arrow programs with corresponding .space layouts.

File structure

The exercises are spread out over various (source) files. Please adhere to this distribution for the sake of your grader.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published