blob: 0db1cb999d9ac8e63c10c11af1bfb735441d9719 (
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
35
36
|
lex
ignore / ' ' /
token line /[^ \n] [^\n]* '\n'/
end
def g
I: int
[g line]
| []
new Parser: parser<g>()
Go: bool
Go = true
while ( Go ) {
_: parser<g> = Parser
<< " hello friend
Go = false
}
Go = true
while ( Go ) {
_: stream = stdout
<< " hello friend
Go = false
}
G: g = Parser->finish()
G.I = 1
send stdout [G]
##### EXP #####
hello friend
hello friend
|