Compiling and running first program!

This commit is contained in:
Krzosa Karol
2022-06-03 23:15:16 +02:00
parent 5e798bd179
commit a324a5abf0
16 changed files with 800 additions and 73 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,20 +11,20 @@ arena := Arena(
cap = 1000,
)
// lambda_value := (val: Int) // @todo
// lambda_value := (val: int) // @todo
// return
Arena :: struct
// arena: Arena
next: *Arena
data: *Int
data: *int
len : S64
cap : Int
cap : int
Sub :: struct
len: Int
len: int
Sub_Sub :: struct
len: Int
len: int
get_len :: (s: *Arena): S64 // @todo
return s.next.len
@@ -36,11 +36,11 @@ string16: Str16
String16 :: struct
data: *Void
len : Int
len : int
with_type: Arena = thing
poInter := &with_type
deref := *poInter
pointer := &with_type
deref := *pointer
test_assignments :: ()
@@ -60,7 +60,7 @@ test_assignments :: ()
CONST :: 23 == 23
CONST_FLOAT :: 23.52
j: *Int
j: *int
*j = 1
/* invalid
8 = 32