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

def start
	[id*]

parse P: start[stdin]
Start: start = P
for Id: id in Start
	print( ^Id, '\n' )
##### IN #####
a b c
##### EXP #####
a
b
c