Branch Statements, if init statement, File parsing errors

This commit is contained in:
gingerBill
2016-07-24 22:06:58 +01:00
parent 3fe7fc344d
commit 9d8355d361
9 changed files with 378 additions and 138 deletions
+1
View File
@@ -0,0 +1 @@
TAU :: 6.28;
-10
View File
@@ -1,10 +0,0 @@
main :: proc() {
type Vec2: struct { x, y: f32; }
v := Vec2{1, 1};
a := [2]int{1, 2}; // Array 2 of int
s := []int{1, 2}; // Slice of int
_, _ = a, s;
// Equivalent to
// sa := [2]int{1, 2}; s := sa[:];
v.x = 1;
}