speedcat/test_type_checker.cat
Slendi 71c337a3f4 Add support for comparison operators
Signed-off-by: Slendi <slendi@socopon.com>
2024-03-01 15:30:25 +02:00

29 lines
392 B
Plaintext

\let asdf := 0b1101 as f32
\let poop :: 12.0 + 2.0 * asdf
\fn name(a b: f32) i32 {
\ ret (a + b) as i32
\}
\name 123.0 456.0
\let arr: []i32, arr2: [69]u8, ptr: ^i32
fn put_i32(val: i32) i32
\let amogus := 500 + (put_i32 8008135)
\
\put_i32 69 * amogus + 420
let a b := 5 1
if a == 5 {
if b {
put_i32 123
} else {
put_i32 69
}
} else {
put_i32 456
}