10The actual production interpreter. Note gotos for tail-call elimination,
11and manual reference counting. More about the C environment can be found
12in the [runtime system documentation](../../../runtime).
15/* nock(): produce .*(bus fol). Do not virtualize.
18nock(u3_noun bus, u3_noun fol)
26 if ( c3y == u3r_du(hib) ) {
29 poz = nock(u3k(bus), u3k(hib));
30 riv = nock(bus, u3k(gal));
33 return u3i_cell(poz, riv);
36 default: return u3m_bail(c3__exit);
39 if ( c3n == u3r_ud(gal) ) {
40 return u3m_bail(c3__exit);
43 u3_noun pro = u3k(u3at(gal, bus));
45 u3a_lose(bus); u3a_lose(fol);
49 c3_assert(!"not reached");
52 u3_noun pro = u3k(gal);
54 u3a_lose(bus); u3a_lose(fol);
57 c3_assert(!"not reached");
60 u3_noun nex = nock(u3k(bus), u3k(u3t(gal)));
61 u3_noun seb = nock(bus, u3k(u3h(gal)));
68 c3_assert(!"not reached");
73 gof = nock(bus, u3k(gal));
76 u3a_lose(gof); u3a_lose(fol);
79 c3_assert(!"not reached");
84 gof = nock(bus, u3k(gal));
90 c3_assert(!"not reached");
93 u3_noun wim = nock(bus, u3k(gal));
94 u3_noun pro = u3r_sing(u3h(wim), u3t(wim));
96 u3a_lose(wim); u3a_lose(fol);
99 c3_assert(!"not reached");
102 u3_noun b_gal, c_gal, d_gal;
104 u3x_trel(gal, &b_gal, &c_gal, &d_gal);
106 u3_noun tys = nock(u3k(bus), u3k(b_gal));
111 } else if ( 1 == tys ) {
113 } else return u3m_bail(c3__exit);
120 c3_assert(!"not reached");
123 u3_noun b_gal, c_gal;
125 u3x_cell(gal, &b_gal, &c_gal);
127 u3_noun bod = nock(bus, u3k(b_gal));
128 u3_noun nex = u3k(c_gal);
136 c3_assert(!"not reached");
139 u3_noun b_gal, c_gal;
141 u3x_cell(gal, &b_gal, &c_gal);
143 u3_noun heb = nock(u3k(bus), u3k(b_gal));
144 u3_noun bod = u3nc(heb, bus);
145 u3_noun nex = u3k(c_gal);
153 c3_assert(!"not reached");
156 u3_noun b_gal, c_gal;
158 u3x_cell(gal, &b_gal, &c_gal);
160 u3_noun seb = nock(bus, u3k(c_gal));
162 if ( c3n == u3r_ud(b_gal) ) {
163 return u3m_bail(c3__exit);
166 u3_noun nex = u3k(u3at(b_gal, seb));
175 c3_assert(!"not reached");
178 u3_noun p_gal, q_gal;
180 u3x_cell(gal, &p_gal, &q_gal);
182 u3_noun zep, hod, nex;
184 if ( c3y == u3r_du(p_gal) ) {
185 u3_noun b_gal = u3h(p_gal);
186 u3_noun c_gal = u3t(p_gal);
187 u3_noun d_gal = q_gal;
190 hod = nock(u3k(bus), u3k(c_gal));
194 u3_noun b_gal = p_gal;
195 u3_noun c_gal = q_gal;
205 return nock(bus, nex);
208 c3_assert(!"not reached");
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list