HaskellTiger
HaskellTiger copied to clipboard
Modern Compiler Implementation in ML, in Haskell
Not sure if we can find `llvm-hs` on Apple Silicon, but if not we should be able to conditionally turn off the llvm parts and just build the native x86-64...
Eg, instead of outputting ``` tigerc: Parse Error at token (Lexeme class=IN, posn=12:1, string="in") ``` or ``` semantic issue at line 11, col 24: "parameter 0 of func isOdd requires...
these will be reserved for the compiler, and we don't need UB in Tiger.
This would be a difficult refactoring task (for me), but there's going to be a lot of repeated code between these two modules