summaryrefslogtreecommitdiff
path: root/test/reor1.lm
blob: 816b2f1d06368d63b72badce348e8e04b1e87157 (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
27
##### LM #####
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