OILS / yaks / examples / hello.yaks View on Github | oilshell.org

17 lines, 13 significant
1# module name could also be osh.tdop, core.dev, etc.
2(module hello
3
4 #(include "<stdio.h>")
5
6 (func main [
7 [argv [List Str]]
8 ] => Int
9
10 # array indexing is ,
11 #(call print (argv,1))
12
13 # Uses the mycpp print function
14 (call print "hello")
15 (return 42)
16 )
17)