summaryrefslogtreecommitdiff
path: root/test/forloop1.lm
blob: 3ed07489db1e6fc87f5c1e206d57f1e6ebf0713f (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 Start
	print( Id '\n' )
##### IN #####
a b c
##### EXP #####
a
b
c