Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2009 (2)
20082026
  1. …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)
  2. 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
  3. …backend wouldn't be cool to add though. Anyways, I figured someone may find it interesting. http://github.com/michaelmelanson/cminus-compiler