aboutsummaryrefslogtreecommitdiff
path: root/code/main.felan
blob: 14368a320c18451f3bca09bb738510a643fd66a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@import("basic.felan");

print :: (value:**anytype)->void{
  if comptime @type_of(value.*) == u8 {
    @putc(value.*);
  }else{
    @putc('h');
  }
};

st :: struct {
};

__get_item__ :: (left:st,index:i64,index2:i64)->i64{
  return index+index2;
};

main :: () -> void {
  a : st = undefined;
  print(a[1,2]);
};