speedcat/test.cat

22 lines
496 B
Plaintext

use "fmt.cat"
use lib "directory/long_library_name"
use "directory/library'with'special'chars"
\ This is a comment, it should be ignored by the compiler
fmt.printf "%d + %d = %d File length: %d" a b a + b (io.file_size "file.txt")
fmt.println "Hello world!"
let a := 123 \ This is another comment, that should be ignored by the compiler
let uninitialized : u32
let multiple variables here : u32 = 1 2 3
let string : str, number : i32
if a == 1 {
lol
} elif b == 2 {
kek
} else {
aaaaaaa
}