summaryrefslogtreecommitdiff
path: root/test/reor1.lm
blob: 87a7525a000ffd67fc5eaeb90086dc51f7f2a3f1 (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 '\n' )
##### IN #####
ab cd ef
##### EXP #####
ab cd ef
##### IN #####
ag
##### EXP #####
NIL
##### IN #####
93 
ab	22
##### EXP #####
93 
ab	22