New types, Value rework, Sym cleanup

This commit is contained in:
Krzosa Karol
2022-06-02 22:17:28 +02:00
parent 9a58e407a4
commit 173ef843df
11 changed files with 270 additions and 149 deletions

View File

@@ -1,5 +1,5 @@
Str16 :: String16
// arena_pointer: *Arena = null
// arena_poInter: *Arena = null
thing: Arena
no_type := thing
constant_access := Arena.constant_inside
@@ -11,22 +11,22 @@ arena := Arena(
cap = 1000,
)
// lambda_value := (val: int) // @todo
// lambda_value := (val: Int) // @todo
// return
Arena :: struct
// arena: Arena
next: *Arena
data: *int
len : int
cap : int
data: *Int
len : Int
cap : Int
Sub :: struct
len: int
len: Int
Sub_Sub :: struct
len: int
len: Int
get_len :: (s: *Arena): int // @todo
get_len :: (s: *Arena): Int // @todo
return s.next.len
constant_inside :: 10000
@@ -35,12 +35,12 @@ Arena :: struct
string16: Str16
String16 :: struct
data: *void
len : int
data: *Void
len : Int
with_type: Arena = thing
pointer := &with_type
deref := *pointer
poInter := &with_type
deref := *poInter
test_assignments :: ()
@@ -59,7 +59,7 @@ test_assignments :: ()
i = i > 2
CONST :: 23 == 23
j: *int
j: *Int
*j = 1
/* invalid
8 = 32