1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/example/ex.hyc

12 lines
284 B
Plaintext
Raw Normal View History

2022-02-24 13:58:50 -06:00
let foo: int = 1;
let bar: string = "str";
let baz: bool = true;
2022-02-17 19:41:05 -06:00
2022-02-24 13:58:50 -06:00
fun qux (lhs: int rhs: int) -> int = lhs + rhs;
2022-02-25 02:59:17 -06:00
fun quux () -> string = "Hi, World!\n";
2022-02-24 13:58:50 -06:00
fun main () -> int = do
2022-02-25 02:59:17 -06:00
let msg: string = "Hello, World!\n";
2022-02-24 15:37:43 -06:00
write(msg);
2022-02-25 03:15:40 -06:00
let qux_result: int = qux(34 35);
2022-02-24 13:58:50 -06:00
0;
2022-02-24 06:33:14 -06:00
end;