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

15 lines
302 B
Plaintext
Raw Normal View History

2023-03-01 23:04:12 -06:00
let name: str = "john";
2023-03-04 09:34:12 -06:00
println("Hello, " + name + "!");
2023-03-01 23:04:12 -06:00
let a: num = 17, b: num = 35 in
let c: num = a * 2 in
2023-03-04 09:34:12 -06:00
println(b + c);
2023-03-01 23:04:12 -06:00
// func foo (a: int, b: int) {
// let c = a * 2;
//
// let res = b + c in
// return res + a;
// }
2023-03-04 09:34:12 -06:00
2023-03-01 23:04:12 -06:00
println((\x: int -> x + 1)(1));