blob: ede542dac03977d7ea6a9f8e6fff71d411e9ddf6 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#
# Test of stream voids.
#
void hello1()
{
send stdout "hello"
}
send stdout
"
"[hello1()]
"
#
# Parser voids
#
lex
token line /[^\n]* '\n'/
end
def g
[line*]
global P: parser<g>
P = new parser<g>()
void hello2()
{
send P "hello"
}
send P
"
"[hello2()]
"
send stdout
[P->finish()]
##### EXP #####
hello
hello
|