summaryrefslogblamecommitdiff
path: root/examples/example0.luma
blob: 4e72a9aa7b96aa58bee418b8afc514d18ba03281 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                             
def fn /std/void [/std/int28 argc | /std/arr /std/str args] -noret main
	ifeq argc #3 args.#1 “Hello” args.#2 “there!”
		call /std/fout [“General Kenobi?” | $000A]
	else
		def var /std/int28 iter
		loop @iter
			ifeq iter #10
				brk
			call /std/fout [“Luma FTW!” | $000A]
		call /std/fout [“"Luma FTW!" should have been written 10 times.” | $000A]
	exit #0
X