mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
16 lines
313 B
Plaintext
16 lines
313 B
Plaintext
// user defined function
|
|
func foo :: (a, b) = {
|
|
return a;
|
|
};
|
|
|
|
// entry point
|
|
func main :: () = {
|
|
// if else in variable definition
|
|
let cond_str :: String = if true { return "t" } else { return "f" };
|
|
|
|
// Infix operator
|
|
let n :: Bool = 2 == 2;
|
|
// Prefix operator
|
|
let m :: Bool = !n;
|
|
};
|