]> Git — Sourcephile - haskell/symantic-parser.git/blob - test/Golden/Machine/some-string.dump
Rename Machine.{Build => Program}
[haskell/symantic-parser.git] / test / Golden / Machine / some-string.dump
1 push (\u1 -> (\u2 -> u1 : u2 Term))
2 name_2:
3 | catchFail
4 | <try>
5 | | push (\u1 -> (\u2 -> (\u3 -> (\u4 -> 'a' : ('b' : ('c' : ('d' : Term)))))))
6 | | read ('a' ==)
7 | | lift (\u1 -> (\u2 -> u1 u2))
8 | | read ('b' ==)
9 | | lift (\u1 -> (\u2 -> u1 u2))
10 | | read ('c' ==)
11 | | lift (\u1 -> (\u2 -> u1 u2))
12 | | read ('d' ==)
13 | | lift (\u1 -> (\u2 -> u1 u2))
14 | | popFail
15 | | ret
16 | <handler>
17 | loadInput
18 | fail
19 call name_2
20 lift (\u1 -> (\u2 -> u1 u2))
21 name_1:
22 | catchFail
23 | <try>
24 | | push (\u1 -> (\u2 -> (\u3 -> u1 : u2 u3)))
25 | | call name_2
26 | | lift (\u1 -> (\u2 -> u1 u2))
27 | | call name_1
28 | | lift (\u1 -> (\u2 -> u1 u2))
29 | | popFail
30 | | ret
31 | <handler>
32 | pushInput
33 | lift Term
34 | choices [(\u1 -> u1)]
35 | <branch>
36 | | push (\u1 -> u1)
37 | | ret
38 | <default>
39 | fail
40 call name_1
41 lift (\u1 -> (\u2 -> u1 u2))
42 ret