Hello world
Hello world
fn main() -> int:
say "Hello from TezzNative"
ret 0
Examples
Search examples by feature and copy the snippets directly into a `.tn` file.
fn main() -> int:
say "Hello from TezzNative"
ret 0
import "io"
fn main() -> int:
io.write_all("out.txt", "saved")
say io.read_all("out.txt")
ret 0
import "tezzserve"
fn handler(ctx:*ServeCtx):
tezzserve.response(ctx, 200, "ok")
fn main():
tezzserve.listen(8080, handler)
extern fn putchar(c:int) -> int
fn main() -> int:
putchar(65)
ret 0