Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.

Commit e4894c7

Browse files
committed
Added support for compiling via cargo
1 parent d123fe9 commit e4894c7

22 files changed

+48
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ bin
2222

2323
.depend
2424
tags
25+
26+
target/

Cargo.lock

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
3+
name = "HaskellCompiler"
4+
version = "0.0.1"
5+
authors = ["Markus Westerlind <[email protected]>"]
6+
7+
[[bin]]
8+
9+
name = "HaskellCompiler"
10+
path = "src/main.rs"
11+
12+
[dependencies.log]

Test.hs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module Test where
2+
import Prelude
3+
4+
5+
test :: IO Int
6+
test = do
7+
let y = primIntAdd 0 2 * 4
8+
putStrLn "test"
9+
return y
10+
11+
main :: Int
12+
main = sum [1, 2, 3]
13+
14+
File renamed without changes.
File renamed without changes.

core.rs renamed to src/core.rs

File renamed without changes.
File renamed without changes.

graph.rs renamed to src/graph.rs

File renamed without changes.

infix.rs renamed to src/infix.rs

File renamed without changes.
File renamed without changes.
File renamed without changes.

lexer.rs renamed to src/lexer.rs

File renamed without changes.

main.rs renamed to src/main.rs

File renamed without changes.

module.rs renamed to src/module.rs

File renamed without changes.

parser.rs renamed to src/parser.rs

File renamed without changes.
File renamed without changes.

repl.rs renamed to src/repl.rs

File renamed without changes.
File renamed without changes.
File renamed without changes.

types.rs renamed to src/types.rs

File renamed without changes.

vm.rs renamed to src/vm.rs

File renamed without changes.

0 commit comments

Comments
 (0)