summaryrefslogtreecommitdiff
path: root/test/reor1.lm
blob: 4bf34d18c4e2c62e458532a53b4d013c33785f73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
lex 
	token id / [abcdef] /
	token number / [0-9] /
	ignore / [\n\t ] /
end

def item [id] | [number]

def start [item*]

parse P: start[stdin]
print[ @P ]
##### IN #####
ab cd ef
##### EXP #####
ab cd ef
##### IN #####
ag
##### EXP #####
NIL--noeol
##### IN #####
93 
ab	22
##### EXP #####
93 
ab	22