Cabbagelang Programming 3x
使用了lisp语法。
(output “Hello, World!”)
官方教学
下面是简单小例子
(fun {plus x y} {+ x y})
(plus 1 2)
fun {biggest & xs} {
if(== (tail xs) nil) {fst xs}
{do
(= {rest} (unpack min (tail xs)))
(= {item} (fst xs))
(if (< item rest) {item} {rest})
}
})
(func {number} (kin {}))
(= {number} (stn number))
(if (> 0 number) {output "Number > 0"} {output "Number < 0"})