summaryrefslogtreecommitdiff
path: root/test/forloop2.lm
blob: 7d54f8aa56fa0a91c92581f8c7d66ec06c03ce8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
##### LM #####
lex
	token id / 'a' .. 'z' /
	ignore / '\n' | '\t' | ' ' /
end

def start
	[id*]

parse P: start[stdin]
Start: start = P
for Id: id in triter(Start)
	print( ^Id '\n' )
##### IN #####
d e f
##### EXP #####
d
e
f