Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
#lang transd
|
||||
|
||||
MainModule: {
|
||||
_start: (λ locals: b 1 c 0
|
||||
(textout (if b "OK" else "NO") "\n")
|
||||
|
||||
// switch/case emulation
|
||||
|
||||
(textout (* 5
|
||||
(if (== b 0) 2
|
||||
elsif (== b 1) 5
|
||||
else 6)) "\n")
|
||||
|
||||
// example of using 'or' as a conditional construct
|
||||
|
||||
(or (!= c 0) (textout "c is 0"))
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue