1 /* $PostgreSQL: pgsql/contrib/tsearch2/snowball/english_stem.c,v 1.8 2006/03/11 04:38:30 momjian Exp $ */
3 /* This file was generated automatically by the Snowball to ANSI C compiler */
7 extern int english_ISO_8859_1_stem(struct SN_env * z);
8 static int r_exception2(struct SN_env * z);
9 static int r_exception1(struct SN_env * z);
10 static int r_Step_5(struct SN_env * z);
11 static int r_Step_4(struct SN_env * z);
12 static int r_Step_3(struct SN_env * z);
13 static int r_Step_2(struct SN_env * z);
14 static int r_Step_1c(struct SN_env * z);
15 static int r_Step_1b(struct SN_env * z);
16 static int r_Step_1a(struct SN_env * z);
17 static int r_R2(struct SN_env * z);
18 static int r_R1(struct SN_env * z);
19 static int r_shortv(struct SN_env * z);
20 static int r_mark_regions(struct SN_env * z);
21 static int r_postlude(struct SN_env * z);
22 static int r_prelude(struct SN_env * z);
24 extern struct SN_env *english_ISO_8859_1_create_env(void);
25 extern void english_ISO_8859_1_close_env(struct SN_env * z);
27 static symbol s_0_0[6] = {'c', 'o', 'm', 'm', 'u', 'n'};
28 static symbol s_0_1[5] = {'g', 'e', 'n', 'e', 'r'};
30 static struct among a_0[2] =
32 /* 0 */ {6, s_0_0, -1, -1, 0},
33 /* 1 */ {5, s_0_1, -1, -1, 0}
36 static symbol s_1_0[1] = {'\''};
37 static symbol s_1_1[3] = {'\'', 's', '\''};
38 static symbol s_1_2[2] = {'\'', 's'};
40 static struct among a_1[3] =
42 /* 0 */ {1, s_1_0, -1, 1, 0},
43 /* 1 */ {3, s_1_1, 0, 1, 0},
44 /* 2 */ {2, s_1_2, -1, 1, 0}
47 static symbol s_2_0[3] = {'i', 'e', 'd'};
48 static symbol s_2_1[1] = {'s'};
49 static symbol s_2_2[3] = {'i', 'e', 's'};
50 static symbol s_2_3[4] = {'s', 's', 'e', 's'};
51 static symbol s_2_4[2] = {'s', 's'};
52 static symbol s_2_5[2] = {'u', 's'};
54 static struct among a_2[6] =
56 /* 0 */ {3, s_2_0, -1, 2, 0},
57 /* 1 */ {1, s_2_1, -1, 3, 0},
58 /* 2 */ {3, s_2_2, 1, 2, 0},
59 /* 3 */ {4, s_2_3, 1, 1, 0},
60 /* 4 */ {2, s_2_4, 1, -1, 0},
61 /* 5 */ {2, s_2_5, 1, -1, 0}
64 static symbol s_3_1[2] = {'b', 'b'};
65 static symbol s_3_2[2] = {'d', 'd'};
66 static symbol s_3_3[2] = {'f', 'f'};
67 static symbol s_3_4[2] = {'g', 'g'};
68 static symbol s_3_5[2] = {'b', 'l'};
69 static symbol s_3_6[2] = {'m', 'm'};
70 static symbol s_3_7[2] = {'n', 'n'};
71 static symbol s_3_8[2] = {'p', 'p'};
72 static symbol s_3_9[2] = {'r', 'r'};
73 static symbol s_3_10[2] = {'a', 't'};
74 static symbol s_3_11[2] = {'t', 't'};
75 static symbol s_3_12[2] = {'i', 'z'};
77 static struct among a_3[13] =
79 /* 0 */ {0, 0, -1, 3, 0},
80 /* 1 */ {2, s_3_1, 0, 2, 0},
81 /* 2 */ {2, s_3_2, 0, 2, 0},
82 /* 3 */ {2, s_3_3, 0, 2, 0},
83 /* 4 */ {2, s_3_4, 0, 2, 0},
84 /* 5 */ {2, s_3_5, 0, 1, 0},
85 /* 6 */ {2, s_3_6, 0, 2, 0},
86 /* 7 */ {2, s_3_7, 0, 2, 0},
87 /* 8 */ {2, s_3_8, 0, 2, 0},
88 /* 9 */ {2, s_3_9, 0, 2, 0},
89 /* 10 */ {2, s_3_10, 0, 1, 0},
90 /* 11 */ {2, s_3_11, 0, 2, 0},
91 /* 12 */ {2, s_3_12, 0, 1, 0}
94 static symbol s_4_0[2] = {'e', 'd'};
95 static symbol s_4_1[3] = {'e', 'e', 'd'};
96 static symbol s_4_2[3] = {'i', 'n', 'g'};
97 static symbol s_4_3[4] = {'e', 'd', 'l', 'y'};
98 static symbol s_4_4[5] = {'e', 'e', 'd', 'l', 'y'};
99 static symbol s_4_5[5] = {'i', 'n', 'g', 'l', 'y'};
101 static struct among a_4[6] =
103 /* 0 */ {2, s_4_0, -1, 2, 0},
104 /* 1 */ {3, s_4_1, 0, 1, 0},
105 /* 2 */ {3, s_4_2, -1, 2, 0},
106 /* 3 */ {4, s_4_3, -1, 2, 0},
107 /* 4 */ {5, s_4_4, 3, 1, 0},
108 /* 5 */ {5, s_4_5, -1, 2, 0}
111 static symbol s_5_0[4] = {'a', 'n', 'c', 'i'};
112 static symbol s_5_1[4] = {'e', 'n', 'c', 'i'};
113 static symbol s_5_2[3] = {'o', 'g', 'i'};
114 static symbol s_5_3[2] = {'l', 'i'};
115 static symbol s_5_4[3] = {'b', 'l', 'i'};
116 static symbol s_5_5[4] = {'a', 'b', 'l', 'i'};
117 static symbol s_5_6[4] = {'a', 'l', 'l', 'i'};
118 static symbol s_5_7[5] = {'f', 'u', 'l', 'l', 'i'};
119 static symbol s_5_8[6] = {'l', 'e', 's', 's', 'l', 'i'};
120 static symbol s_5_9[5] = {'o', 'u', 's', 'l', 'i'};
121 static symbol s_5_10[5] = {'e', 'n', 't', 'l', 'i'};
122 static symbol s_5_11[5] = {'a', 'l', 'i', 't', 'i'};
123 static symbol s_5_12[6] = {'b', 'i', 'l', 'i', 't', 'i'};
124 static symbol s_5_13[5] = {'i', 'v', 'i', 't', 'i'};
125 static symbol s_5_14[6] = {'t', 'i', 'o', 'n', 'a', 'l'};
126 static symbol s_5_15[7] = {'a', 't', 'i', 'o', 'n', 'a', 'l'};
127 static symbol s_5_16[5] = {'a', 'l', 'i', 's', 'm'};
128 static symbol s_5_17[5] = {'a', 't', 'i', 'o', 'n'};
129 static symbol s_5_18[7] = {'i', 'z', 'a', 't', 'i', 'o', 'n'};
130 static symbol s_5_19[4] = {'i', 'z', 'e', 'r'};
131 static symbol s_5_20[4] = {'a', 't', 'o', 'r'};
132 static symbol s_5_21[7] = {'i', 'v', 'e', 'n', 'e', 's', 's'};
133 static symbol s_5_22[7] = {'f', 'u', 'l', 'n', 'e', 's', 's'};
134 static symbol s_5_23[7] = {'o', 'u', 's', 'n', 'e', 's', 's'};
136 static struct among a_5[24] =
138 /* 0 */ {4, s_5_0, -1, 3, 0},
139 /* 1 */ {4, s_5_1, -1, 2, 0},
140 /* 2 */ {3, s_5_2, -1, 13, 0},
141 /* 3 */ {2, s_5_3, -1, 16, 0},
142 /* 4 */ {3, s_5_4, 3, 12, 0},
143 /* 5 */ {4, s_5_5, 4, 4, 0},
144 /* 6 */ {4, s_5_6, 3, 8, 0},
145 /* 7 */ {5, s_5_7, 3, 14, 0},
146 /* 8 */ {6, s_5_8, 3, 15, 0},
147 /* 9 */ {5, s_5_9, 3, 10, 0},
148 /* 10 */ {5, s_5_10, 3, 5, 0},
149 /* 11 */ {5, s_5_11, -1, 8, 0},
150 /* 12 */ {6, s_5_12, -1, 12, 0},
151 /* 13 */ {5, s_5_13, -1, 11, 0},
152 /* 14 */ {6, s_5_14, -1, 1, 0},
153 /* 15 */ {7, s_5_15, 14, 7, 0},
154 /* 16 */ {5, s_5_16, -1, 8, 0},
155 /* 17 */ {5, s_5_17, -1, 7, 0},
156 /* 18 */ {7, s_5_18, 17, 6, 0},
157 /* 19 */ {4, s_5_19, -1, 6, 0},
158 /* 20 */ {4, s_5_20, -1, 7, 0},
159 /* 21 */ {7, s_5_21, -1, 11, 0},
160 /* 22 */ {7, s_5_22, -1, 9, 0},
161 /* 23 */ {7, s_5_23, -1, 10, 0}
164 static symbol s_6_0[5] = {'i', 'c', 'a', 't', 'e'};
165 static symbol s_6_1[5] = {'a', 't', 'i', 'v', 'e'};
166 static symbol s_6_2[5] = {'a', 'l', 'i', 'z', 'e'};
167 static symbol s_6_3[5] = {'i', 'c', 'i', 't', 'i'};
168 static symbol s_6_4[4] = {'i', 'c', 'a', 'l'};
169 static symbol s_6_5[6] = {'t', 'i', 'o', 'n', 'a', 'l'};
170 static symbol s_6_6[7] = {'a', 't', 'i', 'o', 'n', 'a', 'l'};
171 static symbol s_6_7[3] = {'f', 'u', 'l'};
172 static symbol s_6_8[4] = {'n', 'e', 's', 's'};
174 static struct among a_6[9] =
176 /* 0 */ {5, s_6_0, -1, 4, 0},
177 /* 1 */ {5, s_6_1, -1, 6, 0},
178 /* 2 */ {5, s_6_2, -1, 3, 0},
179 /* 3 */ {5, s_6_3, -1, 4, 0},
180 /* 4 */ {4, s_6_4, -1, 4, 0},
181 /* 5 */ {6, s_6_5, -1, 1, 0},
182 /* 6 */ {7, s_6_6, 5, 2, 0},
183 /* 7 */ {3, s_6_7, -1, 5, 0},
184 /* 8 */ {4, s_6_8, -1, 5, 0}
187 static symbol s_7_0[2] = {'i', 'c'};
188 static symbol s_7_1[4] = {'a', 'n', 'c', 'e'};
189 static symbol s_7_2[4] = {'e', 'n', 'c', 'e'};
190 static symbol s_7_3[4] = {'a', 'b', 'l', 'e'};
191 static symbol s_7_4[4] = {'i', 'b', 'l', 'e'};
192 static symbol s_7_5[3] = {'a', 't', 'e'};
193 static symbol s_7_6[3] = {'i', 'v', 'e'};
194 static symbol s_7_7[3] = {'i', 'z', 'e'};
195 static symbol s_7_8[3] = {'i', 't', 'i'};
196 static symbol s_7_9[2] = {'a', 'l'};
197 static symbol s_7_10[3] = {'i', 's', 'm'};
198 static symbol s_7_11[3] = {'i', 'o', 'n'};
199 static symbol s_7_12[2] = {'e', 'r'};
200 static symbol s_7_13[3] = {'o', 'u', 's'};
201 static symbol s_7_14[3] = {'a', 'n', 't'};
202 static symbol s_7_15[3] = {'e', 'n', 't'};
203 static symbol s_7_16[4] = {'m', 'e', 'n', 't'};
204 static symbol s_7_17[5] = {'e', 'm', 'e', 'n', 't'};
206 static struct among a_7[18] =
208 /* 0 */ {2, s_7_0, -1, 1, 0},
209 /* 1 */ {4, s_7_1, -1, 1, 0},
210 /* 2 */ {4, s_7_2, -1, 1, 0},
211 /* 3 */ {4, s_7_3, -1, 1, 0},
212 /* 4 */ {4, s_7_4, -1, 1, 0},
213 /* 5 */ {3, s_7_5, -1, 1, 0},
214 /* 6 */ {3, s_7_6, -1, 1, 0},
215 /* 7 */ {3, s_7_7, -1, 1, 0},
216 /* 8 */ {3, s_7_8, -1, 1, 0},
217 /* 9 */ {2, s_7_9, -1, 1, 0},
218 /* 10 */ {3, s_7_10, -1, 1, 0},
219 /* 11 */ {3, s_7_11, -1, 2, 0},
220 /* 12 */ {2, s_7_12, -1, 1, 0},
221 /* 13 */ {3, s_7_13, -1, 1, 0},
222 /* 14 */ {3, s_7_14, -1, 1, 0},
223 /* 15 */ {3, s_7_15, -1, 1, 0},
224 /* 16 */ {4, s_7_16, 15, 1, 0},
225 /* 17 */ {5, s_7_17, 16, 1, 0}
228 static symbol s_8_0[1] = {'e'};
229 static symbol s_8_1[1] = {'l'};
231 static struct among a_8[2] =
233 /* 0 */ {1, s_8_0, -1, 1, 0},
234 /* 1 */ {1, s_8_1, -1, 2, 0}
237 static symbol s_9_0[7] = {'s', 'u', 'c', 'c', 'e', 'e', 'd'};
238 static symbol s_9_1[7] = {'p', 'r', 'o', 'c', 'e', 'e', 'd'};
239 static symbol s_9_2[6] = {'e', 'x', 'c', 'e', 'e', 'd'};
240 static symbol s_9_3[7] = {'c', 'a', 'n', 'n', 'i', 'n', 'g'};
241 static symbol s_9_4[6] = {'i', 'n', 'n', 'i', 'n', 'g'};
242 static symbol s_9_5[7] = {'e', 'a', 'r', 'r', 'i', 'n', 'g'};
243 static symbol s_9_6[7] = {'h', 'e', 'r', 'r', 'i', 'n', 'g'};
244 static symbol s_9_7[6] = {'o', 'u', 't', 'i', 'n', 'g'};
246 static struct among a_9[8] =
248 /* 0 */ {7, s_9_0, -1, -1, 0},
249 /* 1 */ {7, s_9_1, -1, -1, 0},
250 /* 2 */ {6, s_9_2, -1, -1, 0},
251 /* 3 */ {7, s_9_3, -1, -1, 0},
252 /* 4 */ {6, s_9_4, -1, -1, 0},
253 /* 5 */ {7, s_9_5, -1, -1, 0},
254 /* 6 */ {7, s_9_6, -1, -1, 0},
255 /* 7 */ {6, s_9_7, -1, -1, 0}
258 static symbol s_10_0[5] = {'a', 'n', 'd', 'e', 's'};
259 static symbol s_10_1[5] = {'a', 't', 'l', 'a', 's'};
260 static symbol s_10_2[4] = {'b', 'i', 'a', 's'};
261 static symbol s_10_3[6] = {'c', 'o', 's', 'm', 'o', 's'};
262 static symbol s_10_4[5] = {'d', 'y', 'i', 'n', 'g'};
263 static symbol s_10_5[5] = {'e', 'a', 'r', 'l', 'y'};
264 static symbol s_10_6[6] = {'g', 'e', 'n', 't', 'l', 'y'};
265 static symbol s_10_7[4] = {'h', 'o', 'w', 'e'};
266 static symbol s_10_8[4] = {'i', 'd', 'l', 'y'};
267 static symbol s_10_9[5] = {'l', 'y', 'i', 'n', 'g'};
268 static symbol s_10_10[4] = {'n', 'e', 'w', 's'};
269 static symbol s_10_11[4] = {'o', 'n', 'l', 'y'};
270 static symbol s_10_12[6] = {'s', 'i', 'n', 'g', 'l', 'y'};
271 static symbol s_10_13[5] = {'s', 'k', 'i', 'e', 's'};
272 static symbol s_10_14[4] = {'s', 'k', 'i', 's'};
273 static symbol s_10_15[3] = {'s', 'k', 'y'};
274 static symbol s_10_16[5] = {'t', 'y', 'i', 'n', 'g'};
275 static symbol s_10_17[4] = {'u', 'g', 'l', 'y'};
277 static struct among a_10[18] =
279 /* 0 */ {5, s_10_0, -1, -1, 0},
280 /* 1 */ {5, s_10_1, -1, -1, 0},
281 /* 2 */ {4, s_10_2, -1, -1, 0},
282 /* 3 */ {6, s_10_3, -1, -1, 0},
283 /* 4 */ {5, s_10_4, -1, 3, 0},
284 /* 5 */ {5, s_10_5, -1, 9, 0},
285 /* 6 */ {6, s_10_6, -1, 7, 0},
286 /* 7 */ {4, s_10_7, -1, -1, 0},
287 /* 8 */ {4, s_10_8, -1, 6, 0},
288 /* 9 */ {5, s_10_9, -1, 4, 0},
289 /* 10 */ {4, s_10_10, -1, -1, 0},
290 /* 11 */ {4, s_10_11, -1, 10, 0},
291 /* 12 */ {6, s_10_12, -1, 11, 0},
292 /* 13 */ {5, s_10_13, -1, 2, 0},
293 /* 14 */ {4, s_10_14, -1, 1, 0},
294 /* 15 */ {3, s_10_15, -1, -1, 0},
295 /* 16 */ {5, s_10_16, -1, 5, 0},
296 /* 17 */ {4, s_10_17, -1, 8, 0}
299 static unsigned char g_v[] = {17, 65, 16, 1};
301 static unsigned char g_v_WXY[] = {1, 17, 65, 208, 1};
303 static unsigned char g_valid_LI[] = {55, 141, 2};
305 static symbol s_0[] = {'\''};
306 static symbol s_1[] = {'y'};
307 static symbol s_2[] = {'Y'};
308 static symbol s_3[] = {'y'};
309 static symbol s_4[] = {'Y'};
310 static symbol s_5[] = {'s', 's'};
311 static symbol s_6[] = {'i', 'e'};
312 static symbol s_7[] = {'i'};
313 static symbol s_8[] = {'e', 'e'};
314 static symbol s_9[] = {'e'};
315 static symbol s_10[] = {'e'};
316 static symbol s_11[] = {'y'};
317 static symbol s_12[] = {'Y'};
318 static symbol s_13[] = {'i'};
319 static symbol s_14[] = {'t', 'i', 'o', 'n'};
320 static symbol s_15[] = {'e', 'n', 'c', 'e'};
321 static symbol s_16[] = {'a', 'n', 'c', 'e'};
322 static symbol s_17[] = {'a', 'b', 'l', 'e'};
323 static symbol s_18[] = {'e', 'n', 't'};
324 static symbol s_19[] = {'i', 'z', 'e'};
325 static symbol s_20[] = {'a', 't', 'e'};
326 static symbol s_21[] = {'a', 'l'};
327 static symbol s_22[] = {'f', 'u', 'l'};
328 static symbol s_23[] = {'o', 'u', 's'};
329 static symbol s_24[] = {'i', 'v', 'e'};
330 static symbol s_25[] = {'b', 'l', 'e'};
331 static symbol s_26[] = {'l'};
332 static symbol s_27[] = {'o', 'g'};
333 static symbol s_28[] = {'f', 'u', 'l'};
334 static symbol s_29[] = {'l', 'e', 's', 's'};
335 static symbol s_30[] = {'t', 'i', 'o', 'n'};
336 static symbol s_31[] = {'a', 't', 'e'};
337 static symbol s_32[] = {'a', 'l'};
338 static symbol s_33[] = {'i', 'c'};
339 static symbol s_34[] = {'s'};
340 static symbol s_35[] = {'t'};
341 static symbol s_36[] = {'l'};
342 static symbol s_37[] = {'s', 'k', 'i'};
343 static symbol s_38[] = {'s', 'k', 'y'};
344 static symbol s_39[] = {'d', 'i', 'e'};
345 static symbol s_40[] = {'l', 'i', 'e'};
346 static symbol s_41[] = {'t', 'i', 'e'};
347 static symbol s_42[] = {'i', 'd', 'l'};
348 static symbol s_43[] = {'g', 'e', 'n', 't', 'l'};
349 static symbol s_44[] = {'u', 'g', 'l', 'i'};
350 static symbol s_45[] = {'e', 'a', 'r', 'l', 'i'};
351 static symbol s_46[] = {'o', 'n', 'l', 'i'};
352 static symbol s_47[] = {'s', 'i', 'n', 'g', 'l'};
353 static symbol s_48[] = {'Y'};
354 static symbol s_49[] = {'y'};
357 r_prelude(struct SN_env * z)
359 z->B[0] = 0; /* unset Y_found, line 26 */
361 int c = z->c; /* do, line 27 */
363 z->bra = z->c; /* [, line 27 */
364 if (!(eq_s(z, 1, s_0)))
366 z->ket = z->c; /* ], line 27 */
370 ret = slice_del(z); /* delete, line 27 */
378 int c = z->c; /* do, line 28 */
380 z->bra = z->c; /* [, line 28 */
381 if (!(eq_s(z, 1, s_1)))
383 z->ket = z->c; /* ], line 28 */
384 if (!(in_grouping(z, g_v, 97, 121)))
389 ret = slice_from_s(z, 1, s_2); /* <-, line 28 */
393 z->B[0] = 1; /* set Y_found, line 28 */
398 int c = z->c; /* do, line 29 */
401 { /* repeat, line 29 */
405 { /* goto, line 29 */
408 if (!(in_grouping(z, g_v, 97, 121)))
410 z->bra = z->c; /* [, line 29 */
411 if (!(eq_s(z, 1, s_3)))
413 z->ket = z->c; /* ], line 29 */
420 z->c++; /* goto, line 29 */
425 ret = slice_from_s(z, 1, s_4); /* <-, line 29 */
429 z->B[0] = 1; /* set Y_found, line 29 */
441 r_mark_regions(struct SN_env * z)
446 int c = z->c; /* do, line 35 */
449 int c = z->c; /* or, line 40 */
451 if (!(find_among(z, a_0, 2)))
452 goto lab2; /* among, line 36 */
457 { /* gopast, line 40 */
458 if (!(in_grouping(z, g_v, 97, 121)))
464 z->c++; /* gopast, line 40 */
467 { /* gopast, line 40 */
468 if (!(out_grouping(z, g_v, 97, 121)))
474 z->c++; /* gopast, line 40 */
478 z->I[0] = z->c; /* setmark p1, line 41 */
480 { /* gopast, line 42 */
481 if (!(in_grouping(z, g_v, 97, 121)))
487 z->c++; /* gopast, line 42 */
490 { /* gopast, line 42 */
491 if (!(out_grouping(z, g_v, 97, 121)))
497 z->c++; /* gopast, line 42 */
499 z->I[1] = z->c; /* setmark p2, line 42 */
507 r_shortv(struct SN_env * z)
512 (void) m; /* or, line 50 */
513 if (!(out_grouping_b(z, g_v_WXY, 89, 121)))
515 if (!(in_grouping_b(z, g_v, 97, 121)))
517 if (!(out_grouping_b(z, g_v, 97, 121)))
522 if (!(out_grouping_b(z, g_v, 97, 121)))
524 if (!(in_grouping_b(z, g_v, 97, 121)))
527 return 0; /* atlimit, line 51 */
534 r_R1(struct SN_env * z)
536 if (!(z->I[0] <= z->c))
542 r_R2(struct SN_env * z)
544 if (!(z->I[1] <= z->c))
550 r_Step_1a(struct SN_env * z)
557 (void) m; /* try, line 58 */
558 z->ket = z->c; /* [, line 59 */
559 among_var = find_among_b(z, a_1, 3); /* substring, line 59 */
565 z->bra = z->c; /* ], line 59 */
577 ret = slice_del(z); /* delete, line 61 */
586 z->ket = z->c; /* [, line 64 */
587 among_var = find_among_b(z, a_2, 6); /* substring, line 64 */
590 z->bra = z->c; /* ], line 64 */
599 ret = slice_from_s(z, 2, s_5); /* <-, line 65 */
608 (void) m; /* or, line 67 */
611 z->c--; /* next, line 67 */
613 goto lab2; /* atlimit, line 67 */
617 ret = slice_from_s(z, 2, s_6); /* <-, line 67 */
627 ret = slice_from_s(z, 1, s_7); /* <-, line 67 */
637 z->c--; /* next, line 68 */
639 { /* gopast, line 68 */
640 if (!(in_grouping_b(z, g_v, 97, 121)))
646 z->c--; /* gopast, line 68 */
651 ret = slice_del(z); /* delete, line 68 */
661 r_Step_1b(struct SN_env * z)
665 z->ket = z->c; /* [, line 74 */
666 among_var = find_among_b(z, a_4, 6); /* substring, line 74 */
669 z->bra = z->c; /* ], line 74 */
679 return 0; /* call R1, line 76 */
686 ret = slice_from_s(z, 2, s_8); /* <-, line 76 */
693 int m_test = z->l - z->c; /* test, line 79 */
696 { /* gopast, line 79 */
697 if (!(in_grouping_b(z, g_v, 97, 121)))
703 z->c--; /* gopast, line 79 */
705 z->c = z->l - m_test;
710 ret = slice_del(z); /* delete, line 79 */
715 int m_test = z->l - z->c; /* test, line 80 */
717 among_var = find_among_b(z, a_3, 13); /* substring, line 80 */
720 z->c = z->l - m_test;
733 ret = insert_s(z, z->c, z->c, 1, s_9); /* <+, line 82 */
741 z->ket = z->c; /* [, line 85 */
744 z->c--; /* next, line 85 */
745 z->bra = z->c; /* ], line 85 */
749 ret = slice_del(z); /* delete, line 85 */
756 return 0; /* atmark, line 86 */
758 int m_test = z->l - z->c; /* test, line 86 */
761 int ret = r_shortv(z);
764 return 0; /* call shortv, line 86 */
768 z->c = z->l - m_test;
776 ret = insert_s(z, z->c, z->c, 1, s_10); /* <+, line 86 */
790 r_Step_1c(struct SN_env * z)
792 z->ket = z->c; /* [, line 93 */
796 (void) m; /* or, line 93 */
797 if (!(eq_s_b(z, 1, s_11)))
802 if (!(eq_s_b(z, 1, s_12)))
806 z->bra = z->c; /* ], line 93 */
807 if (!(out_grouping_b(z, g_v, 97, 121)))
812 (void) m; /* not, line 94 */
814 goto lab2; /* atlimit, line 94 */
822 ret = slice_from_s(z, 1, s_13); /* <-, line 95 */
830 r_Step_2(struct SN_env * z)
834 z->ket = z->c; /* [, line 99 */
835 among_var = find_among_b(z, a_5, 24); /* substring, line 99 */
838 z->bra = z->c; /* ], line 99 */
843 return 0; /* call R1, line 99 */
855 ret = slice_from_s(z, 4, s_14); /* <-, line 100 */
864 ret = slice_from_s(z, 4, s_15); /* <-, line 101 */
873 ret = slice_from_s(z, 4, s_16); /* <-, line 102 */
882 ret = slice_from_s(z, 4, s_17); /* <-, line 103 */
891 ret = slice_from_s(z, 3, s_18); /* <-, line 104 */
900 ret = slice_from_s(z, 3, s_19); /* <-, line 106 */
909 ret = slice_from_s(z, 3, s_20); /* <-, line 108 */
918 ret = slice_from_s(z, 2, s_21); /* <-, line 110 */
927 ret = slice_from_s(z, 3, s_22); /* <-, line 111 */
936 ret = slice_from_s(z, 3, s_23); /* <-, line 113 */
945 ret = slice_from_s(z, 3, s_24); /* <-, line 115 */
954 ret = slice_from_s(z, 3, s_25); /* <-, line 117 */
960 if (!(eq_s_b(z, 1, s_26)))
965 ret = slice_from_s(z, 2, s_27); /* <-, line 118 */
974 ret = slice_from_s(z, 3, s_28); /* <-, line 119 */
983 ret = slice_from_s(z, 4, s_29); /* <-, line 120 */
989 if (!(in_grouping_b(z, g_valid_LI, 99, 116)))
994 ret = slice_del(z); /* delete, line 121 */
1004 r_Step_3(struct SN_env * z)
1008 z->ket = z->c; /* [, line 126 */
1009 among_var = find_among_b(z, a_6, 9); /* substring, line 126 */
1012 z->bra = z->c; /* ], line 126 */
1017 return 0; /* call R1, line 126 */
1029 ret = slice_from_s(z, 4, s_30); /* <-, line 127 */
1038 ret = slice_from_s(z, 3, s_31); /* <-, line 128 */
1047 ret = slice_from_s(z, 2, s_32); /* <-, line 129 */
1056 ret = slice_from_s(z, 2, s_33); /* <-, line 131 */
1065 ret = slice_del(z); /* delete, line 133 */
1075 return 0; /* call R2, line 135 */
1082 ret = slice_del(z); /* delete, line 135 */
1092 r_Step_4(struct SN_env * z)
1096 z->ket = z->c; /* [, line 140 */
1097 among_var = find_among_b(z, a_7, 18); /* substring, line 140 */
1100 z->bra = z->c; /* ], line 140 */
1105 return 0; /* call R2, line 140 */
1117 ret = slice_del(z); /* delete, line 143 */
1124 int m = z->l - z->c;
1126 (void) m; /* or, line 144 */
1127 if (!(eq_s_b(z, 1, s_34)))
1132 if (!(eq_s_b(z, 1, s_35)))
1139 ret = slice_del(z); /* delete, line 144 */
1149 r_Step_5(struct SN_env * z)
1153 z->ket = z->c; /* [, line 149 */
1154 among_var = find_among_b(z, a_8, 2); /* substring, line 149 */
1157 z->bra = z->c; /* ], line 149 */
1164 int m = z->l - z->c;
1166 (void) m; /* or, line 150 */
1171 goto lab1; /* call R2, line 150 */
1182 return 0; /* call R1, line 150 */
1187 int m = z->l - z->c;
1189 (void) m; /* not, line 150 */
1191 int ret = r_shortv(z);
1194 goto lab2; /* call shortv, line 150 */
1207 ret = slice_del(z); /* delete, line 150 */
1217 return 0; /* call R2, line 151 */
1221 if (!(eq_s_b(z, 1, s_36)))
1226 ret = slice_del(z); /* delete, line 151 */
1236 r_exception2(struct SN_env * z)
1238 z->ket = z->c; /* [, line 157 */
1239 if (!(find_among_b(z, a_9, 8)))
1240 return 0; /* substring, line 157 */
1241 z->bra = z->c; /* ], line 157 */
1243 return 0; /* atlimit, line 157 */
1248 r_exception1(struct SN_env * z)
1252 z->bra = z->c; /* [, line 169 */
1253 among_var = find_among(z, a_10, 18); /* substring, line 169 */
1256 z->ket = z->c; /* ], line 169 */
1258 return 0; /* atlimit, line 169 */
1267 ret = slice_from_s(z, 3, s_37); /* <-, line 173 */
1276 ret = slice_from_s(z, 3, s_38); /* <-, line 174 */
1285 ret = slice_from_s(z, 3, s_39); /* <-, line 175 */
1294 ret = slice_from_s(z, 3, s_40); /* <-, line 176 */
1303 ret = slice_from_s(z, 3, s_41); /* <-, line 177 */
1312 ret = slice_from_s(z, 3, s_42); /* <-, line 181 */
1321 ret = slice_from_s(z, 5, s_43); /* <-, line 182 */
1330 ret = slice_from_s(z, 4, s_44); /* <-, line 183 */
1339 ret = slice_from_s(z, 5, s_45); /* <-, line 184 */
1348 ret = slice_from_s(z, 4, s_46); /* <-, line 185 */
1357 ret = slice_from_s(z, 5, s_47); /* <-, line 186 */
1367 r_postlude(struct SN_env * z)
1370 return 0; /* Boolean test Y_found, line 202 */
1372 { /* repeat, line 202 */
1376 { /* goto, line 202 */
1379 z->bra = z->c; /* [, line 202 */
1380 if (!(eq_s(z, 1, s_48)))
1382 z->ket = z->c; /* ], line 202 */
1389 z->c++; /* goto, line 202 */
1394 ret = slice_from_s(z, 1, s_49); /* <-, line 202 */
1407 english_ISO_8859_1_stem(struct SN_env * z)
1410 int c = z->c; /* or, line 206 */
1413 int ret = r_exception1(z);
1416 goto lab1; /* call exception1, line 206 */
1424 int c = z->c; /* not, line 207 */
1429 if (0 > c || c > z->l)
1431 z->c = c; /* hop, line 207 */
1441 int c = z->c; /* do, line 208 */
1444 int ret = r_prelude(z);
1447 goto lab4; /* call prelude, line 208 */
1455 int c = z->c; /* do, line 209 */
1458 int ret = r_mark_regions(z);
1461 goto lab5; /* call mark_regions, line 209 */
1469 z->c = z->l; /* backwards, line 210 */
1472 int m = z->l - z->c;
1474 (void) m; /* do, line 212 */
1476 int ret = r_Step_1a(z);
1479 goto lab6; /* call Step_1a, line 212 */
1487 int m = z->l - z->c;
1489 (void) m; /* or, line 214 */
1491 int ret = r_exception2(z);
1494 goto lab8; /* call exception2, line 214 */
1502 int m = z->l - z->c;
1504 (void) m; /* do, line 216 */
1506 int ret = r_Step_1b(z);
1509 goto lab9; /* call Step_1b, line 216 */
1517 int m = z->l - z->c;
1519 (void) m; /* do, line 217 */
1521 int ret = r_Step_1c(z);
1524 goto lab10; /* call Step_1c, line 217 */
1532 int m = z->l - z->c;
1534 (void) m; /* do, line 219 */
1536 int ret = r_Step_2(z);
1539 goto lab11; /* call Step_2, line 219 */
1547 int m = z->l - z->c;
1549 (void) m; /* do, line 220 */
1551 int ret = r_Step_3(z);
1554 goto lab12; /* call Step_3, line 220 */
1562 int m = z->l - z->c;
1564 (void) m; /* do, line 221 */
1566 int ret = r_Step_4(z);
1569 goto lab13; /* call Step_4, line 221 */
1577 int m = z->l - z->c;
1579 (void) m; /* do, line 223 */
1581 int ret = r_Step_5(z);
1584 goto lab14; /* call Step_5, line 223 */
1595 int c = z->c; /* do, line 226 */
1598 int ret = r_postlude(z);
1601 goto lab15; /* call postlude, line 226 */
1613 extern struct SN_env *
1614 english_ISO_8859_1_create_env(void)
1616 return SN_create_env(0, 2, 1);
1620 english_ISO_8859_1_close_env(struct SN_env * z)