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

This commit is contained in:
gingerBill committed 2016-07-21 00:26:14 +01:00
1 parent aa6a2caecb
commit cbd82e3c02
17 files changed
+1462 -1481

No files matched your search

+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);
}