mirror of
https://github.com/teo3300/rust-mal.git
synced 2026-01-12 09:15:32 +01:00
22 lines
418 B
Plaintext
22 lines
418 B
Plaintext
(def! func ; ole
|
|
(fn* (a b c) ; this is all a bunch
|
|
|
|
"This function does nothing useful"
|
|
|
|
; of useless comments
|
|
(def! d (+ a b)) ; to check if the parser
|
|
(- c d))) ; is able to ignore them
|
|
|
|
(test 1 2 14) (help +)
|
|
(help -)(func 1 2 3)
|
|
(help test)
|
|
(help func)
|
|
(help 1)
|
|
|
|
; Maaged to fix the do form
|
|
(do
|
|
(+ 2 2)
|
|
(+ 3 4))
|
|
|
|
; I even implemented return statement
|
|
(exit (func 1 2 3)) |