GitXplorerGitXplorer
M

haskell-compiler-cpp

public
6 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
96df4fa7995bc1dea5842cbae270abb54ce2a2e1

Added comparison primitives for double

MMarwes committed 11 years ago
Unverified
a7a72449c9fd4b401fd76362b65efb62f5e01a82

Fixed PUSH_DOUBLE instruction labeling the double as an int

MMarwes committed 11 years ago
Unverified
11ce4fcf116cc0d8c7806fe25cb0c1c6acca1bf8

Added all comparison functions for integers

MMarwes committed 11 years ago
Unverified
ed4ea3272cbc1be204badfca52ffb1ea51c033f8

Added the ability to call foreign functions, added primIntEq using the FFI

MMarwes committed 11 years ago
Unverified
c13852cb5ec4799f4b16777418104f84c3f5f0e2

Changed tests to only use the primitive arithmetic operators

MMarwes committed 11 years ago
Unverified
bafbe90e28edad99a952df6dfec42be7cac9b8a6

Made sure that types are always cleared even if exceptions are thrown

MMarwes committed 11 years ago

README

The README file for this repository.

Haskell Compiler/VM

This is an old experiment I made writing a Haskell compiler in C++ which compiles down to G-Machine code. It implements basic parsing, typechecking and compilation but not much more as it was rewritten and continued in Rust.

Dependencies

Requires boost and Catch (for unittesting).

References

Implementing FunctionalLanguages: a tutorial

Rust implementation