Support import files as modules (i.e. import only once)

This commit is contained in:
gingerBill
2016-07-21 00:26:14 +01:00
parent aa6a2caecb
commit cbd82e3c02
17 changed files with 1462 additions and 1481 deletions
+3
View File
@@ -0,0 +1,3 @@
add :: proc(a, b: int) -> int {
return a + b;
}
+11
View File
@@ -0,0 +1,11 @@
import "other"
TAU :: 6.28;
PI :: PI/2;
main :: proc() {
x : int = 2;
x = x * 3;
y := add(1, x);
}