summaryrefslogtreecommitdiff
path: root/test/typeref1.lm
blob: 789f48c23f0051ce14155fd884329e7238d5a3a6 (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
28
29
30
31
32
33
34
##### LM #####
namespace n1

	namespace n2
		lex
			token id / 'a' .. 'z' /
			ignore / '\n' | '\t' | ' ' /
		end

		def start
			[id*]
	end
end

parse P: n1::n2::id*[stdin]
print( P.tree '\n' )
##### IN #####

##### EXP #####

##### IN #####
a
##### EXP #####
a
##### IN #####
a
  b
  c
d
##### EXP #####
a
  b
  c
d