summaryrefslogtreecommitdiff
path: root/test/prints.lm
blob: 1a72d216d153e589da6c032cb7aa30c4964d0d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
##### LM #####
lex
	token word /[a-z]+/
	ignore /[\t\n ]+/
end

def start
	[word*]

parse Start: start[stdin]

prints( stderr 'fd stderr: ' Start.tree '\n' )
prints( stdout 'fd stdout: ' Start.tree '\n' )
##### IN #####
a b c
##### EXP #####
fd stdout: a b c