summaryrefslogtreecommitdiff
path: root/code/main.felan
blob: 52c89337b35f9c09cc29994ef6803cef6e16b2d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
byte :: i8;
ubyte :: u8;

short :: i16;
ushort :: u16;

int :: i32;
uint :: u32;

long :: i64;
ulong :: u64;

short_float :: f16;
float :: f32;
double :: f64;
long_double :: f128;

usize :: u64;

array :: (t:type) -> type {
  return struct {
    ptr : *t;
    length : usize;
  };
};

array_int :: array(u64);

main :: () -> void {
  a : array_int = undefined;
  b :u64 =2;
  a.length = 1;
};