petr-stdlib 0.1.0

the petr language's standard library
Documentation
1
2
3
4
5
6
Type Ptr = Unsized address 'int | Sized address 'int size 'int 

export fn malloc(size in 'int) returns 'Ptr
  let allocated = @malloc size
  ~Sized allocated, size