To encourage organizing code in a way that helps in understanding, I have implemented the common idiom of requiring a `main` function. In tricu and other functional languages, it is usually placed near the top of the module. The evaluator gracefully handles the situation of passing multiple files where the intermediary "library" files do not have main functions.
10 lines
161 B
Plaintext
10 lines
161 B
Plaintext
-- This is a tricu comment!
|
|
-- t (t t) (t (t t t))
|
|
-- t (t t t) (t t)
|
|
-- x = (\a : a)
|
|
main = t (t t) t -- Fork (Stem Leaf) Leaf
|
|
-- t t
|
|
-- x
|
|
-- x = (\a : a)
|
|
-- t
|