plsm-cpp/examples/stdlib.plsm
2024-02-28 21:16:05 +01:00

39 lines
658 B
Plaintext

type Bool = {
native unop ! Bool;
native binop ||[Bool] Bool;
native binop &&[Bool] Bool;
};
type Byte = {};
type Int = {
native unop + Int;
native unop - Int;
native unop ~ Int;
native binop ==[Int] Bool;
native binop !=[Int] Bool;
native binop >[Int] Bool;
native binop <[Int] Bool;
native binop >=[Int] Bool;
native binop <=[Int] Bool;
native binop <<[Int] Int;
native binop >>[Int] Int;
native binop |[Int] Int;
native binop &[Int] Int;
native binop +[Int] Int;
native binop -[Int] Int;
native binop *[Int] Int;
native binop /[Int] Int;
native binop %[Int] Int;
fn str[] String;
};
type Float = {
};