A HEAR (C-like) compiler written in Haskell
This repository has been archived on 2024-04-05. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
Ethan Reece 0a376070cb
Add LLVM library
2023-09-15 00:51:44 -05:00
app Read expressions from file 2023-09-08 01:31:07 -05:00
example Add example programs 2023-09-11 12:04:36 -05:00
.gitignore Cabal init 2023-09-07 17:24:45 -05:00
CHANGELOG.md Cabal init 2023-09-07 17:24:45 -05:00
README.md Add LLVM library 2023-09-15 00:51:44 -05:00
package.yaml Add LLVM library 2023-09-15 00:51:44 -05:00
really-bad-compiler-in-haskell.cabal Add LLVM library 2023-09-15 00:51:44 -05:00
stack.yaml Add LLVM library 2023-09-15 00:51:44 -05:00
stack.yaml.lock Add LLVM library 2023-09-15 00:51:44 -05:00

README.md

Really Bad Compiler in Haskell

A compiler written in Haskell that is really bad (I do not know what language I am going to compile yet). Built for the Introduction to Compiler Design class at The University of Texas at Dallas.

Main repo: https://git.sudoer.ch/me/really-bad-compiler-in-haskell

Build Instructions

  • Clone the repo.
  • Use ghcup to install all of the Haskell tools.
  • Use stack build and stack run <file> to run the program.

File structure

  • app - contains the compiler program
  • example - contains example programs that can be compiled

Credits

Learning Resources Used

Tools

  • Language: Haskell
  • Haskell tools: GHCup, Stack, Cabal
  • Libraries: megaparsec, parser-combinators, text, llvm-hs-pure
  • IDE: VSCodium
  • Git platform: Forgejo
  • AI: Phind
  • Search: Kagi, Stack Overflow