michaelmelanson/cminus-compiler
View on GitHub ↗ ★ 7 Haskell
A compiler for C-Minus written in Haskell that targets an architecture called TM. I wrote this for a Compilers course. It could stand to be refactored in a few places, but overall I'm pretty proud of it.
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2009-09-19 · latest 2014-12-11
20082026
-
…toy compiler for a university class in Haskell. Here's the relevant bits: * Expression evaluation: https://github.com/michaelmelanson/cminus-compiler/blob/mast... * Statement compilation: https://github.com/michaelmelanson/cminus-compiler/b…
comment by a-priori · 2014-12-11 · in An ASM Monad (2013) -
Here's an example of a parser I wrote using Parsec: http://github.com/michaelmelanson/cminus-compiler/blob/maste...
comment by a-priori · 2009-11-09 · in Haskell IO for Imperative Programmers -
…backend wouldn't be cool to add though. Anyways, I figured someone may find it interesting. http://github.com/michaelmelanson/cminus-compiler
comment by a-priori · 2009-09-19 · in Writing Your Own Toy Compiler Using Flex, Bison and LLVM