wryl revised this gist . Go to revision
1 file changed, 63 insertions
Compilation.(file created)
@@ -0,0 +1,63 @@ | |||
1 | + | [linear@construct parser]$ ../compiler.py constants.nv movement.nv input.nv equality.nv whitespace.nv main.nv > parser.c | |
2 | + | [linear@construct parser]$ gcc -O3 parser.c -o parser | |
3 | + | [linear@construct parser]$ cat lingo.nv | |
4 | + | || self, sad, other, other, water, eye | |
5 | + | ,, creature, garden, reason, destruction | |
6 | + | ,, see, then | |
7 | + | ||
8 | + | || self, sad, other, other, water, eye | |
9 | + | ,, mo, see, then | |
10 | + | ||
11 | + | || self, ne, see, then | |
12 | + | ||
13 | + | ||
14 | + | || this is a sample | |
15 | + | [linear@construct parser]$ cat lingo.nv | ./parser | |
16 | + | ||
17 | + | self | |
18 | + | sad | |
19 | + | other | |
20 | + | other | |
21 | + | water | |
22 | + | eye | |
23 | + | ||
24 | + | ||
25 | + | creature | |
26 | + | garden | |
27 | + | reason | |
28 | + | destruction | |
29 | + | ||
30 | + | ||
31 | + | see | |
32 | + | then | |
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | self | |
38 | + | sad | |
39 | + | other | |
40 | + | other | |
41 | + | water | |
42 | + | eye | |
43 | + | ||
44 | + | ||
45 | + | mo | |
46 | + | see | |
47 | + | then | |
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | self | |
53 | + | ne | |
54 | + | see | |
55 | + | then | |
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | this is a sample | |
62 | + | ||
63 | + | [linear@construct parser]$ |
Newer
Older