summaryrefslogtreecommitdiff
path: root/test/cases/colm.d/postfix.lm
blob: 0e509e99a60c87ccebaa2c7c619ac9be8f2acb16 (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

lex
	ignore / ' ' /
	token line /[^ \n] [^\n]* '\n'/
end

def g
	I: int
	[g line]
|	[]

new Output: parser<g>()

send Output " hello friend

G: g = Output->finish()
G.I = 1

send stdout [ postfix( G ) ]

##### EXP #####
r g 21 1 0
t line 5 1 2 1 hello\20friend\0a
r g 21 0 2