ferret 0.11.6 → 0.11.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. data/README +10 -22
  2. data/RELEASE_CHANGES +137 -0
  3. data/RELEASE_NOTES +60 -0
  4. data/Rakefile +379 -274
  5. data/TODO +100 -8
  6. data/bin/ferret-browser +0 -0
  7. data/ext/BZLIB_blocksort.c +1094 -0
  8. data/ext/BZLIB_bzlib.c +1578 -0
  9. data/ext/BZLIB_compress.c +672 -0
  10. data/ext/BZLIB_crctable.c +104 -0
  11. data/ext/BZLIB_decompress.c +626 -0
  12. data/ext/BZLIB_huffman.c +205 -0
  13. data/ext/BZLIB_randtable.c +84 -0
  14. data/ext/{api.c → STEMMER_api.c} +7 -10
  15. data/ext/{libstemmer.c → STEMMER_libstemmer.c} +3 -2
  16. data/ext/{stem_ISO_8859_1_danish.c → STEMMER_stem_ISO_8859_1_danish.c} +123 -124
  17. data/ext/{stem_ISO_8859_1_dutch.c → STEMMER_stem_ISO_8859_1_dutch.c} +177 -188
  18. data/ext/STEMMER_stem_ISO_8859_1_english.c +1117 -0
  19. data/ext/{stem_ISO_8859_1_finnish.c → STEMMER_stem_ISO_8859_1_finnish.c} +276 -306
  20. data/ext/STEMMER_stem_ISO_8859_1_french.c +1246 -0
  21. data/ext/{stem_ISO_8859_1_german.c → STEMMER_stem_ISO_8859_1_german.c} +161 -170
  22. data/ext/STEMMER_stem_ISO_8859_1_hungarian.c +1230 -0
  23. data/ext/STEMMER_stem_ISO_8859_1_italian.c +1065 -0
  24. data/ext/STEMMER_stem_ISO_8859_1_norwegian.c +297 -0
  25. data/ext/{stem_ISO_8859_1_porter.c → STEMMER_stem_ISO_8859_1_porter.c} +263 -290
  26. data/ext/{stem_ISO_8859_1_portuguese.c → STEMMER_stem_ISO_8859_1_portuguese.c} +362 -380
  27. data/ext/STEMMER_stem_ISO_8859_1_spanish.c +1093 -0
  28. data/ext/STEMMER_stem_ISO_8859_1_swedish.c +307 -0
  29. data/ext/STEMMER_stem_ISO_8859_2_romanian.c +998 -0
  30. data/ext/{stem_KOI8_R_russian.c → STEMMER_stem_KOI8_R_russian.c} +244 -245
  31. data/ext/STEMMER_stem_UTF_8_danish.c +339 -0
  32. data/ext/{stem_UTF_8_dutch.c → STEMMER_stem_UTF_8_dutch.c} +192 -211
  33. data/ext/STEMMER_stem_UTF_8_english.c +1125 -0
  34. data/ext/{stem_UTF_8_finnish.c → STEMMER_stem_UTF_8_finnish.c} +284 -324
  35. data/ext/STEMMER_stem_UTF_8_french.c +1256 -0
  36. data/ext/{stem_UTF_8_german.c → STEMMER_stem_UTF_8_german.c} +170 -187
  37. data/ext/STEMMER_stem_UTF_8_hungarian.c +1234 -0
  38. data/ext/STEMMER_stem_UTF_8_italian.c +1073 -0
  39. data/ext/STEMMER_stem_UTF_8_norwegian.c +299 -0
  40. data/ext/{stem_UTF_8_porter.c → STEMMER_stem_UTF_8_porter.c} +271 -310
  41. data/ext/STEMMER_stem_UTF_8_portuguese.c +1023 -0
  42. data/ext/STEMMER_stem_UTF_8_romanian.c +1004 -0
  43. data/ext/STEMMER_stem_UTF_8_russian.c +694 -0
  44. data/ext/STEMMER_stem_UTF_8_spanish.c +1097 -0
  45. data/ext/STEMMER_stem_UTF_8_swedish.c +309 -0
  46. data/ext/STEMMER_stem_UTF_8_turkish.c +2205 -0
  47. data/ext/{utilities.c → STEMMER_utilities.c} +100 -68
  48. data/ext/analysis.c +276 -121
  49. data/ext/analysis.h +190 -143
  50. data/ext/api.h +3 -4
  51. data/ext/array.c +5 -3
  52. data/ext/array.h +52 -43
  53. data/ext/bitvector.c +38 -482
  54. data/ext/bitvector.h +446 -124
  55. data/ext/bzlib.h +282 -0
  56. data/ext/bzlib_private.h +503 -0
  57. data/ext/compound_io.c +23 -22
  58. data/ext/config.h +21 -11
  59. data/ext/document.c +43 -40
  60. data/ext/document.h +31 -21
  61. data/ext/except.c +20 -38
  62. data/ext/except.h +89 -76
  63. data/ext/extconf.rb +3 -2
  64. data/ext/ferret.c +49 -35
  65. data/ext/ferret.h +14 -11
  66. data/ext/field_index.c +262 -0
  67. data/ext/field_index.h +52 -0
  68. data/ext/filter.c +11 -10
  69. data/ext/fs_store.c +65 -47
  70. data/ext/global.c +245 -165
  71. data/ext/global.h +252 -54
  72. data/ext/hash.c +200 -243
  73. data/ext/hash.h +205 -163
  74. data/ext/hashset.c +118 -96
  75. data/ext/hashset.h +110 -82
  76. data/ext/header.h +19 -19
  77. data/ext/helper.c +11 -10
  78. data/ext/helper.h +14 -6
  79. data/ext/index.c +745 -366
  80. data/ext/index.h +503 -529
  81. data/ext/internal.h +1020 -0
  82. data/ext/lang.c +10 -0
  83. data/ext/lang.h +35 -15
  84. data/ext/mempool.c +5 -4
  85. data/ext/mempool.h +30 -22
  86. data/ext/modules.h +35 -7
  87. data/ext/multimapper.c +43 -2
  88. data/ext/multimapper.h +32 -23
  89. data/ext/posh.c +0 -0
  90. data/ext/posh.h +4 -38
  91. data/ext/priorityqueue.c +10 -12
  92. data/ext/priorityqueue.h +33 -21
  93. data/ext/q_boolean.c +22 -9
  94. data/ext/q_const_score.c +3 -2
  95. data/ext/q_filtered_query.c +15 -12
  96. data/ext/q_fuzzy.c +147 -135
  97. data/ext/q_match_all.c +3 -2
  98. data/ext/q_multi_term.c +28 -32
  99. data/ext/q_parser.c +451 -173
  100. data/ext/q_phrase.c +158 -79
  101. data/ext/q_prefix.c +16 -18
  102. data/ext/q_range.c +363 -31
  103. data/ext/q_span.c +130 -141
  104. data/ext/q_term.c +21 -21
  105. data/ext/q_wildcard.c +19 -23
  106. data/ext/r_analysis.c +369 -242
  107. data/ext/r_index.c +421 -434
  108. data/ext/r_qparser.c +142 -92
  109. data/ext/r_search.c +790 -407
  110. data/ext/r_store.c +44 -44
  111. data/ext/r_utils.c +264 -96
  112. data/ext/ram_store.c +29 -23
  113. data/ext/scanner.c +895 -0
  114. data/ext/scanner.h +36 -0
  115. data/ext/scanner_mb.c +6701 -0
  116. data/ext/scanner_utf8.c +4415 -0
  117. data/ext/search.c +210 -87
  118. data/ext/search.h +556 -488
  119. data/ext/similarity.c +17 -16
  120. data/ext/similarity.h +51 -44
  121. data/ext/sort.c +157 -354
  122. data/ext/stem_ISO_8859_1_hungarian.h +16 -0
  123. data/ext/stem_ISO_8859_2_romanian.h +16 -0
  124. data/ext/stem_UTF_8_hungarian.h +16 -0
  125. data/ext/stem_UTF_8_romanian.h +16 -0
  126. data/ext/stem_UTF_8_turkish.h +16 -0
  127. data/ext/stopwords.c +287 -278
  128. data/ext/store.c +57 -51
  129. data/ext/store.h +308 -286
  130. data/ext/symbol.c +10 -0
  131. data/ext/symbol.h +23 -0
  132. data/ext/term_vectors.c +14 -293
  133. data/ext/threading.h +22 -22
  134. data/ext/win32.h +12 -4
  135. data/lib/ferret.rb +2 -1
  136. data/lib/ferret/browser.rb +1 -1
  137. data/lib/ferret/field_symbol.rb +94 -0
  138. data/lib/ferret/index.rb +221 -34
  139. data/lib/ferret/number_tools.rb +6 -6
  140. data/lib/ferret/version.rb +3 -0
  141. data/test/{unit → long_running}/largefile/tc_largefile.rb +1 -1
  142. data/test/test_helper.rb +7 -2
  143. data/test/test_installed.rb +1 -0
  144. data/test/threading/thread_safety_index_test.rb +10 -1
  145. data/test/threading/thread_safety_read_write_test.rb +4 -7
  146. data/test/threading/thread_safety_test.rb +0 -0
  147. data/test/unit/analysis/tc_analyzer.rb +29 -27
  148. data/test/unit/analysis/tc_token_stream.rb +23 -16
  149. data/test/unit/index/tc_index.rb +116 -11
  150. data/test/unit/index/tc_index_reader.rb +27 -27
  151. data/test/unit/index/tc_index_writer.rb +10 -0
  152. data/test/unit/index/th_doc.rb +38 -21
  153. data/test/unit/search/tc_filter.rb +31 -10
  154. data/test/unit/search/tc_index_searcher.rb +6 -0
  155. data/test/unit/search/tm_searcher.rb +53 -1
  156. data/test/unit/store/tc_fs_store.rb +40 -2
  157. data/test/unit/store/tc_ram_store.rb +0 -0
  158. data/test/unit/store/tm_store.rb +0 -0
  159. data/test/unit/store/tm_store_lock.rb +7 -6
  160. data/test/unit/tc_field_symbol.rb +26 -0
  161. data/test/unit/ts_analysis.rb +0 -0
  162. data/test/unit/ts_index.rb +0 -0
  163. data/test/unit/ts_store.rb +0 -0
  164. data/test/unit/ts_utils.rb +0 -0
  165. data/test/unit/utils/tc_number_tools.rb +0 -0
  166. data/test/utils/content_generator.rb +226 -0
  167. metadata +262 -221
  168. data/ext/inc/lang.h +0 -48
  169. data/ext/inc/threading.h +0 -31
  170. data/ext/stem_ISO_8859_1_english.c +0 -1156
  171. data/ext/stem_ISO_8859_1_french.c +0 -1276
  172. data/ext/stem_ISO_8859_1_italian.c +0 -1091
  173. data/ext/stem_ISO_8859_1_norwegian.c +0 -296
  174. data/ext/stem_ISO_8859_1_spanish.c +0 -1119
  175. data/ext/stem_ISO_8859_1_swedish.c +0 -307
  176. data/ext/stem_UTF_8_danish.c +0 -344
  177. data/ext/stem_UTF_8_english.c +0 -1176
  178. data/ext/stem_UTF_8_french.c +0 -1296
  179. data/ext/stem_UTF_8_italian.c +0 -1113
  180. data/ext/stem_UTF_8_norwegian.c +0 -302
  181. data/ext/stem_UTF_8_portuguese.c +0 -1055
  182. data/ext/stem_UTF_8_russian.c +0 -709
  183. data/ext/stem_UTF_8_spanish.c +0 -1137
  184. data/ext/stem_UTF_8_swedish.c +0 -313
  185. data/lib/ferret_version.rb +0 -3
@@ -1,296 +0,0 @@
1
-
2
- /* This file was generated automatically by the Snowball to ANSI C compiler */
3
-
4
- #include "header.h"
5
-
6
- extern int norwegian_ISO_8859_1_stem(struct SN_env * z);
7
- static int r_other_suffix(struct SN_env * z);
8
- static int r_consonant_pair(struct SN_env * z);
9
- static int r_main_suffix(struct SN_env * z);
10
- static int r_mark_regions(struct SN_env * z);
11
-
12
- extern struct SN_env * norwegian_ISO_8859_1_create_env(void);
13
- extern void norwegian_ISO_8859_1_close_env(struct SN_env * z);
14
-
15
- static symbol s_0_0[1] = { 'a' };
16
- static symbol s_0_1[1] = { 'e' };
17
- static symbol s_0_2[3] = { 'e', 'd', 'e' };
18
- static symbol s_0_3[4] = { 'a', 'n', 'd', 'e' };
19
- static symbol s_0_4[4] = { 'e', 'n', 'd', 'e' };
20
- static symbol s_0_5[3] = { 'a', 'n', 'e' };
21
- static symbol s_0_6[3] = { 'e', 'n', 'e' };
22
- static symbol s_0_7[6] = { 'h', 'e', 't', 'e', 'n', 'e' };
23
- static symbol s_0_8[4] = { 'e', 'r', 't', 'e' };
24
- static symbol s_0_9[2] = { 'e', 'n' };
25
- static symbol s_0_10[5] = { 'h', 'e', 't', 'e', 'n' };
26
- static symbol s_0_11[2] = { 'a', 'r' };
27
- static symbol s_0_12[2] = { 'e', 'r' };
28
- static symbol s_0_13[5] = { 'h', 'e', 't', 'e', 'r' };
29
- static symbol s_0_14[1] = { 's' };
30
- static symbol s_0_15[2] = { 'a', 's' };
31
- static symbol s_0_16[2] = { 'e', 's' };
32
- static symbol s_0_17[4] = { 'e', 'd', 'e', 's' };
33
- static symbol s_0_18[5] = { 'e', 'n', 'd', 'e', 's' };
34
- static symbol s_0_19[4] = { 'e', 'n', 'e', 's' };
35
- static symbol s_0_20[7] = { 'h', 'e', 't', 'e', 'n', 'e', 's' };
36
- static symbol s_0_21[3] = { 'e', 'n', 's' };
37
- static symbol s_0_22[6] = { 'h', 'e', 't', 'e', 'n', 's' };
38
- static symbol s_0_23[3] = { 'e', 'r', 's' };
39
- static symbol s_0_24[3] = { 'e', 't', 's' };
40
- static symbol s_0_25[2] = { 'e', 't' };
41
- static symbol s_0_26[3] = { 'h', 'e', 't' };
42
- static symbol s_0_27[3] = { 'e', 'r', 't' };
43
- static symbol s_0_28[3] = { 'a', 's', 't' };
44
-
45
- static struct among a_0[29] =
46
- {
47
- /* 0 */ { 1, s_0_0, -1, 1, 0},
48
- /* 1 */ { 1, s_0_1, -1, 1, 0},
49
- /* 2 */ { 3, s_0_2, 1, 1, 0},
50
- /* 3 */ { 4, s_0_3, 1, 1, 0},
51
- /* 4 */ { 4, s_0_4, 1, 1, 0},
52
- /* 5 */ { 3, s_0_5, 1, 1, 0},
53
- /* 6 */ { 3, s_0_6, 1, 1, 0},
54
- /* 7 */ { 6, s_0_7, 6, 1, 0},
55
- /* 8 */ { 4, s_0_8, 1, 3, 0},
56
- /* 9 */ { 2, s_0_9, -1, 1, 0},
57
- /* 10 */ { 5, s_0_10, 9, 1, 0},
58
- /* 11 */ { 2, s_0_11, -1, 1, 0},
59
- /* 12 */ { 2, s_0_12, -1, 1, 0},
60
- /* 13 */ { 5, s_0_13, 12, 1, 0},
61
- /* 14 */ { 1, s_0_14, -1, 2, 0},
62
- /* 15 */ { 2, s_0_15, 14, 1, 0},
63
- /* 16 */ { 2, s_0_16, 14, 1, 0},
64
- /* 17 */ { 4, s_0_17, 16, 1, 0},
65
- /* 18 */ { 5, s_0_18, 16, 1, 0},
66
- /* 19 */ { 4, s_0_19, 16, 1, 0},
67
- /* 20 */ { 7, s_0_20, 19, 1, 0},
68
- /* 21 */ { 3, s_0_21, 14, 1, 0},
69
- /* 22 */ { 6, s_0_22, 21, 1, 0},
70
- /* 23 */ { 3, s_0_23, 14, 1, 0},
71
- /* 24 */ { 3, s_0_24, 14, 1, 0},
72
- /* 25 */ { 2, s_0_25, -1, 1, 0},
73
- /* 26 */ { 3, s_0_26, 25, 1, 0},
74
- /* 27 */ { 3, s_0_27, -1, 3, 0},
75
- /* 28 */ { 3, s_0_28, -1, 1, 0}
76
- };
77
-
78
- static symbol s_1_0[2] = { 'd', 't' };
79
- static symbol s_1_1[2] = { 'v', 't' };
80
-
81
- static struct among a_1[2] =
82
- {
83
- /* 0 */ { 2, s_1_0, -1, -1, 0},
84
- /* 1 */ { 2, s_1_1, -1, -1, 0}
85
- };
86
-
87
- static symbol s_2_0[3] = { 'l', 'e', 'g' };
88
- static symbol s_2_1[4] = { 'e', 'l', 'e', 'g' };
89
- static symbol s_2_2[2] = { 'i', 'g' };
90
- static symbol s_2_3[3] = { 'e', 'i', 'g' };
91
- static symbol s_2_4[3] = { 'l', 'i', 'g' };
92
- static symbol s_2_5[4] = { 'e', 'l', 'i', 'g' };
93
- static symbol s_2_6[3] = { 'e', 'l', 's' };
94
- static symbol s_2_7[3] = { 'l', 'o', 'v' };
95
- static symbol s_2_8[4] = { 'e', 'l', 'o', 'v' };
96
- static symbol s_2_9[4] = { 's', 'l', 'o', 'v' };
97
- static symbol s_2_10[7] = { 'h', 'e', 't', 's', 'l', 'o', 'v' };
98
-
99
- static struct among a_2[11] =
100
- {
101
- /* 0 */ { 3, s_2_0, -1, 1, 0},
102
- /* 1 */ { 4, s_2_1, 0, 1, 0},
103
- /* 2 */ { 2, s_2_2, -1, 1, 0},
104
- /* 3 */ { 3, s_2_3, 2, 1, 0},
105
- /* 4 */ { 3, s_2_4, 2, 1, 0},
106
- /* 5 */ { 4, s_2_5, 4, 1, 0},
107
- /* 6 */ { 3, s_2_6, -1, 1, 0},
108
- /* 7 */ { 3, s_2_7, -1, 1, 0},
109
- /* 8 */ { 4, s_2_8, 7, 1, 0},
110
- /* 9 */ { 4, s_2_9, 7, 1, 0},
111
- /* 10 */ { 7, s_2_10, 9, 1, 0}
112
- };
113
-
114
- static unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 128 };
115
-
116
- static unsigned char g_s_ending[] = { 119, 125, 149, 1 };
117
-
118
- static symbol s_0[] = { 'k' };
119
- static symbol s_1[] = { 'e', 'r' };
120
-
121
- static int r_mark_regions(struct SN_env * z) {
122
- z->I[0] = z->l;
123
- { int c_test = z->c; /* test, line 30 */
124
- { int c = z->c + 3;
125
- if (0 > c || c > z->l) return 0;
126
- z->c = c; /* hop, line 30 */
127
- }
128
- z->I[1] = z->c; /* setmark x, line 30 */
129
- z->c = c_test;
130
- }
131
- while(1) { /* goto, line 31 */
132
- int c = z->c;
133
- if (!(in_grouping(z, g_v, 97, 248))) goto lab0;
134
- z->c = c;
135
- break;
136
- lab0:
137
- z->c = c;
138
- if (z->c >= z->l) return 0;
139
- z->c++; /* goto, line 31 */
140
- }
141
- while(1) { /* gopast, line 31 */
142
- if (!(out_grouping(z, g_v, 97, 248))) goto lab1;
143
- break;
144
- lab1:
145
- if (z->c >= z->l) return 0;
146
- z->c++; /* gopast, line 31 */
147
- }
148
- z->I[0] = z->c; /* setmark p1, line 31 */
149
- /* try, line 32 */
150
- if (!(z->I[0] < z->I[1])) goto lab2;
151
- z->I[0] = z->I[1];
152
- lab2:
153
- return 1;
154
- }
155
-
156
- static int r_main_suffix(struct SN_env * z) {
157
- int among_var;
158
- { int m3; /* setlimit, line 38 */
159
- int m = z->l - z->c; (void) m;
160
- if (z->c < z->I[0]) return 0;
161
- z->c = z->I[0]; /* tomark, line 38 */
162
- m3 = z->lb; z->lb = z->c;
163
- z->c = z->l - m;
164
- z->ket = z->c; /* [, line 38 */
165
- among_var = find_among_b(z, a_0, 29); /* substring, line 38 */
166
- if (!(among_var)) { z->lb = m3; return 0; }
167
- z->bra = z->c; /* ], line 38 */
168
- z->lb = m3;
169
- }
170
- switch(among_var) {
171
- case 0: return 0;
172
- case 1:
173
- { int ret;
174
- ret = slice_del(z); /* delete, line 44 */
175
- if (ret < 0) return ret;
176
- }
177
- break;
178
- case 2:
179
- { int m = z->l - z->c; (void) m; /* or, line 46 */
180
- if (!(in_grouping_b(z, g_s_ending, 98, 122))) goto lab1;
181
- goto lab0;
182
- lab1:
183
- z->c = z->l - m;
184
- if (!(eq_s_b(z, 1, s_0))) return 0;
185
- if (!(out_grouping_b(z, g_v, 97, 248))) return 0;
186
- }
187
- lab0:
188
- { int ret;
189
- ret = slice_del(z); /* delete, line 46 */
190
- if (ret < 0) return ret;
191
- }
192
- break;
193
- case 3:
194
- { int ret;
195
- ret = slice_from_s(z, 2, s_1); /* <-, line 48 */
196
- if (ret < 0) return ret;
197
- }
198
- break;
199
- }
200
- return 1;
201
- }
202
-
203
- static int r_consonant_pair(struct SN_env * z) {
204
- { int m_test = z->l - z->c; /* test, line 53 */
205
- { int m3; /* setlimit, line 54 */
206
- int m = z->l - z->c; (void) m;
207
- if (z->c < z->I[0]) return 0;
208
- z->c = z->I[0]; /* tomark, line 54 */
209
- m3 = z->lb; z->lb = z->c;
210
- z->c = z->l - m;
211
- z->ket = z->c; /* [, line 54 */
212
- if (!(find_among_b(z, a_1, 2))) { z->lb = m3; return 0; } /* substring, line 54 */
213
- z->bra = z->c; /* ], line 54 */
214
- z->lb = m3;
215
- }
216
- z->c = z->l - m_test;
217
- }
218
- if (z->c <= z->lb) return 0;
219
- z->c--; /* next, line 59 */
220
- z->bra = z->c; /* ], line 59 */
221
- { int ret;
222
- ret = slice_del(z); /* delete, line 59 */
223
- if (ret < 0) return ret;
224
- }
225
- return 1;
226
- }
227
-
228
- static int r_other_suffix(struct SN_env * z) {
229
- int among_var;
230
- { int m3; /* setlimit, line 63 */
231
- int m = z->l - z->c; (void) m;
232
- if (z->c < z->I[0]) return 0;
233
- z->c = z->I[0]; /* tomark, line 63 */
234
- m3 = z->lb; z->lb = z->c;
235
- z->c = z->l - m;
236
- z->ket = z->c; /* [, line 63 */
237
- among_var = find_among_b(z, a_2, 11); /* substring, line 63 */
238
- if (!(among_var)) { z->lb = m3; return 0; }
239
- z->bra = z->c; /* ], line 63 */
240
- z->lb = m3;
241
- }
242
- switch(among_var) {
243
- case 0: return 0;
244
- case 1:
245
- { int ret;
246
- ret = slice_del(z); /* delete, line 67 */
247
- if (ret < 0) return ret;
248
- }
249
- break;
250
- }
251
- return 1;
252
- }
253
-
254
- extern int norwegian_ISO_8859_1_stem(struct SN_env * z) {
255
- { int c = z->c; /* do, line 74 */
256
- { int ret = r_mark_regions(z);
257
- if (ret == 0) goto lab0; /* call mark_regions, line 74 */
258
- if (ret < 0) return ret;
259
- }
260
- lab0:
261
- z->c = c;
262
- }
263
- z->lb = z->c; z->c = z->l; /* backwards, line 75 */
264
-
265
- { int m = z->l - z->c; (void) m; /* do, line 76 */
266
- { int ret = r_main_suffix(z);
267
- if (ret == 0) goto lab1; /* call main_suffix, line 76 */
268
- if (ret < 0) return ret;
269
- }
270
- lab1:
271
- z->c = z->l - m;
272
- }
273
- { int m = z->l - z->c; (void) m; /* do, line 77 */
274
- { int ret = r_consonant_pair(z);
275
- if (ret == 0) goto lab2; /* call consonant_pair, line 77 */
276
- if (ret < 0) return ret;
277
- }
278
- lab2:
279
- z->c = z->l - m;
280
- }
281
- { int m = z->l - z->c; (void) m; /* do, line 78 */
282
- { int ret = r_other_suffix(z);
283
- if (ret == 0) goto lab3; /* call other_suffix, line 78 */
284
- if (ret < 0) return ret;
285
- }
286
- lab3:
287
- z->c = z->l - m;
288
- }
289
- z->c = z->lb;
290
- return 1;
291
- }
292
-
293
- extern struct SN_env * norwegian_ISO_8859_1_create_env(void) { return SN_create_env(0, 2, 0); }
294
-
295
- extern void norwegian_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z); }
296
-
@@ -1,1119 +0,0 @@
1
-
2
- /* This file was generated automatically by the Snowball to ANSI C compiler */
3
-
4
- #include "header.h"
5
-
6
- extern int spanish_ISO_8859_1_stem(struct SN_env * z);
7
- static int r_residual_suffix(struct SN_env * z);
8
- static int r_verb_suffix(struct SN_env * z);
9
- static int r_y_verb_suffix(struct SN_env * z);
10
- static int r_standard_suffix(struct SN_env * z);
11
- static int r_attached_pronoun(struct SN_env * z);
12
- static int r_R2(struct SN_env * z);
13
- static int r_R1(struct SN_env * z);
14
- static int r_RV(struct SN_env * z);
15
- static int r_mark_regions(struct SN_env * z);
16
- static int r_postlude(struct SN_env * z);
17
-
18
- extern struct SN_env * spanish_ISO_8859_1_create_env(void);
19
- extern void spanish_ISO_8859_1_close_env(struct SN_env * z);
20
-
21
- static symbol s_0_1[1] = { 0xE1 };
22
- static symbol s_0_2[1] = { 0xE9 };
23
- static symbol s_0_3[1] = { 0xED };
24
- static symbol s_0_4[1] = { 0xF3 };
25
- static symbol s_0_5[1] = { 0xFA };
26
-
27
- static struct among a_0[6] =
28
- {
29
- /* 0 */ { 0, 0, -1, 6, 0},
30
- /* 1 */ { 1, s_0_1, 0, 1, 0},
31
- /* 2 */ { 1, s_0_2, 0, 2, 0},
32
- /* 3 */ { 1, s_0_3, 0, 3, 0},
33
- /* 4 */ { 1, s_0_4, 0, 4, 0},
34
- /* 5 */ { 1, s_0_5, 0, 5, 0}
35
- };
36
-
37
- static symbol s_1_0[2] = { 'l', 'a' };
38
- static symbol s_1_1[4] = { 's', 'e', 'l', 'a' };
39
- static symbol s_1_2[2] = { 'l', 'e' };
40
- static symbol s_1_3[2] = { 'm', 'e' };
41
- static symbol s_1_4[2] = { 's', 'e' };
42
- static symbol s_1_5[2] = { 'l', 'o' };
43
- static symbol s_1_6[4] = { 's', 'e', 'l', 'o' };
44
- static symbol s_1_7[3] = { 'l', 'a', 's' };
45
- static symbol s_1_8[5] = { 's', 'e', 'l', 'a', 's' };
46
- static symbol s_1_9[3] = { 'l', 'e', 's' };
47
- static symbol s_1_10[3] = { 'l', 'o', 's' };
48
- static symbol s_1_11[5] = { 's', 'e', 'l', 'o', 's' };
49
- static symbol s_1_12[3] = { 'n', 'o', 's' };
50
-
51
- static struct among a_1[13] =
52
- {
53
- /* 0 */ { 2, s_1_0, -1, -1, 0},
54
- /* 1 */ { 4, s_1_1, 0, -1, 0},
55
- /* 2 */ { 2, s_1_2, -1, -1, 0},
56
- /* 3 */ { 2, s_1_3, -1, -1, 0},
57
- /* 4 */ { 2, s_1_4, -1, -1, 0},
58
- /* 5 */ { 2, s_1_5, -1, -1, 0},
59
- /* 6 */ { 4, s_1_6, 5, -1, 0},
60
- /* 7 */ { 3, s_1_7, -1, -1, 0},
61
- /* 8 */ { 5, s_1_8, 7, -1, 0},
62
- /* 9 */ { 3, s_1_9, -1, -1, 0},
63
- /* 10 */ { 3, s_1_10, -1, -1, 0},
64
- /* 11 */ { 5, s_1_11, 10, -1, 0},
65
- /* 12 */ { 3, s_1_12, -1, -1, 0}
66
- };
67
-
68
- static symbol s_2_0[4] = { 'a', 'n', 'd', 'o' };
69
- static symbol s_2_1[5] = { 'i', 'e', 'n', 'd', 'o' };
70
- static symbol s_2_2[5] = { 'y', 'e', 'n', 'd', 'o' };
71
- static symbol s_2_3[4] = { 0xE1, 'n', 'd', 'o' };
72
- static symbol s_2_4[5] = { 'i', 0xE9, 'n', 'd', 'o' };
73
- static symbol s_2_5[2] = { 'a', 'r' };
74
- static symbol s_2_6[2] = { 'e', 'r' };
75
- static symbol s_2_7[2] = { 'i', 'r' };
76
- static symbol s_2_8[2] = { 0xE1, 'r' };
77
- static symbol s_2_9[2] = { 0xE9, 'r' };
78
- static symbol s_2_10[2] = { 0xED, 'r' };
79
-
80
- static struct among a_2[11] =
81
- {
82
- /* 0 */ { 4, s_2_0, -1, 6, 0},
83
- /* 1 */ { 5, s_2_1, -1, 6, 0},
84
- /* 2 */ { 5, s_2_2, -1, 7, 0},
85
- /* 3 */ { 4, s_2_3, -1, 2, 0},
86
- /* 4 */ { 5, s_2_4, -1, 1, 0},
87
- /* 5 */ { 2, s_2_5, -1, 6, 0},
88
- /* 6 */ { 2, s_2_6, -1, 6, 0},
89
- /* 7 */ { 2, s_2_7, -1, 6, 0},
90
- /* 8 */ { 2, s_2_8, -1, 3, 0},
91
- /* 9 */ { 2, s_2_9, -1, 4, 0},
92
- /* 10 */ { 2, s_2_10, -1, 5, 0}
93
- };
94
-
95
- static symbol s_3_0[2] = { 'i', 'c' };
96
- static symbol s_3_1[2] = { 'a', 'd' };
97
- static symbol s_3_2[2] = { 'o', 's' };
98
- static symbol s_3_3[2] = { 'i', 'v' };
99
-
100
- static struct among a_3[4] =
101
- {
102
- /* 0 */ { 2, s_3_0, -1, -1, 0},
103
- /* 1 */ { 2, s_3_1, -1, -1, 0},
104
- /* 2 */ { 2, s_3_2, -1, -1, 0},
105
- /* 3 */ { 2, s_3_3, -1, 1, 0}
106
- };
107
-
108
- static symbol s_4_0[4] = { 'a', 'b', 'l', 'e' };
109
- static symbol s_4_1[4] = { 'i', 'b', 'l', 'e' };
110
- static symbol s_4_2[4] = { 'a', 'n', 't', 'e' };
111
-
112
- static struct among a_4[3] =
113
- {
114
- /* 0 */ { 4, s_4_0, -1, 1, 0},
115
- /* 1 */ { 4, s_4_1, -1, 1, 0},
116
- /* 2 */ { 4, s_4_2, -1, 1, 0}
117
- };
118
-
119
- static symbol s_5_0[2] = { 'i', 'c' };
120
- static symbol s_5_1[4] = { 'a', 'b', 'i', 'l' };
121
- static symbol s_5_2[2] = { 'i', 'v' };
122
-
123
- static struct among a_5[3] =
124
- {
125
- /* 0 */ { 2, s_5_0, -1, 1, 0},
126
- /* 1 */ { 4, s_5_1, -1, 1, 0},
127
- /* 2 */ { 2, s_5_2, -1, 1, 0}
128
- };
129
-
130
- static symbol s_6_0[3] = { 'i', 'c', 'a' };
131
- static symbol s_6_1[5] = { 'a', 'n', 'c', 'i', 'a' };
132
- static symbol s_6_2[5] = { 'e', 'n', 'c', 'i', 'a' };
133
- static symbol s_6_3[5] = { 'a', 'd', 'o', 'r', 'a' };
134
- static symbol s_6_4[3] = { 'o', 's', 'a' };
135
- static symbol s_6_5[4] = { 'i', 's', 't', 'a' };
136
- static symbol s_6_6[3] = { 'i', 'v', 'a' };
137
- static symbol s_6_7[4] = { 'a', 'n', 'z', 'a' };
138
- static symbol s_6_8[5] = { 'l', 'o', 'g', 0xED, 'a' };
139
- static symbol s_6_9[4] = { 'i', 'd', 'a', 'd' };
140
- static symbol s_6_10[4] = { 'a', 'b', 'l', 'e' };
141
- static symbol s_6_11[4] = { 'i', 'b', 'l', 'e' };
142
- static symbol s_6_12[4] = { 'a', 'n', 't', 'e' };
143
- static symbol s_6_13[5] = { 'm', 'e', 'n', 't', 'e' };
144
- static symbol s_6_14[6] = { 'a', 'm', 'e', 'n', 't', 'e' };
145
- static symbol s_6_15[5] = { 'a', 'c', 'i', 0xF3, 'n' };
146
- static symbol s_6_16[5] = { 'u', 'c', 'i', 0xF3, 'n' };
147
- static symbol s_6_17[3] = { 'i', 'c', 'o' };
148
- static symbol s_6_18[4] = { 'i', 's', 'm', 'o' };
149
- static symbol s_6_19[3] = { 'o', 's', 'o' };
150
- static symbol s_6_20[7] = { 'a', 'm', 'i', 'e', 'n', 't', 'o' };
151
- static symbol s_6_21[7] = { 'i', 'm', 'i', 'e', 'n', 't', 'o' };
152
- static symbol s_6_22[3] = { 'i', 'v', 'o' };
153
- static symbol s_6_23[4] = { 'a', 'd', 'o', 'r' };
154
- static symbol s_6_24[4] = { 'i', 'c', 'a', 's' };
155
- static symbol s_6_25[6] = { 'a', 'n', 'c', 'i', 'a', 's' };
156
- static symbol s_6_26[6] = { 'e', 'n', 'c', 'i', 'a', 's' };
157
- static symbol s_6_27[6] = { 'a', 'd', 'o', 'r', 'a', 's' };
158
- static symbol s_6_28[4] = { 'o', 's', 'a', 's' };
159
- static symbol s_6_29[5] = { 'i', 's', 't', 'a', 's' };
160
- static symbol s_6_30[4] = { 'i', 'v', 'a', 's' };
161
- static symbol s_6_31[5] = { 'a', 'n', 'z', 'a', 's' };
162
- static symbol s_6_32[6] = { 'l', 'o', 'g', 0xED, 'a', 's' };
163
- static symbol s_6_33[6] = { 'i', 'd', 'a', 'd', 'e', 's' };
164
- static symbol s_6_34[5] = { 'a', 'b', 'l', 'e', 's' };
165
- static symbol s_6_35[5] = { 'i', 'b', 'l', 'e', 's' };
166
- static symbol s_6_36[7] = { 'a', 'c', 'i', 'o', 'n', 'e', 's' };
167
- static symbol s_6_37[7] = { 'u', 'c', 'i', 'o', 'n', 'e', 's' };
168
- static symbol s_6_38[6] = { 'a', 'd', 'o', 'r', 'e', 's' };
169
- static symbol s_6_39[5] = { 'a', 'n', 't', 'e', 's' };
170
- static symbol s_6_40[4] = { 'i', 'c', 'o', 's' };
171
- static symbol s_6_41[5] = { 'i', 's', 'm', 'o', 's' };
172
- static symbol s_6_42[4] = { 'o', 's', 'o', 's' };
173
- static symbol s_6_43[8] = { 'a', 'm', 'i', 'e', 'n', 't', 'o', 's' };
174
- static symbol s_6_44[8] = { 'i', 'm', 'i', 'e', 'n', 't', 'o', 's' };
175
- static symbol s_6_45[4] = { 'i', 'v', 'o', 's' };
176
-
177
- static struct among a_6[46] =
178
- {
179
- /* 0 */ { 3, s_6_0, -1, 1, 0},
180
- /* 1 */ { 5, s_6_1, -1, 2, 0},
181
- /* 2 */ { 5, s_6_2, -1, 5, 0},
182
- /* 3 */ { 5, s_6_3, -1, 2, 0},
183
- /* 4 */ { 3, s_6_4, -1, 1, 0},
184
- /* 5 */ { 4, s_6_5, -1, 1, 0},
185
- /* 6 */ { 3, s_6_6, -1, 9, 0},
186
- /* 7 */ { 4, s_6_7, -1, 1, 0},
187
- /* 8 */ { 5, s_6_8, -1, 3, 0},
188
- /* 9 */ { 4, s_6_9, -1, 8, 0},
189
- /* 10 */ { 4, s_6_10, -1, 1, 0},
190
- /* 11 */ { 4, s_6_11, -1, 1, 0},
191
- /* 12 */ { 4, s_6_12, -1, 2, 0},
192
- /* 13 */ { 5, s_6_13, -1, 7, 0},
193
- /* 14 */ { 6, s_6_14, 13, 6, 0},
194
- /* 15 */ { 5, s_6_15, -1, 2, 0},
195
- /* 16 */ { 5, s_6_16, -1, 4, 0},
196
- /* 17 */ { 3, s_6_17, -1, 1, 0},
197
- /* 18 */ { 4, s_6_18, -1, 1, 0},
198
- /* 19 */ { 3, s_6_19, -1, 1, 0},
199
- /* 20 */ { 7, s_6_20, -1, 1, 0},
200
- /* 21 */ { 7, s_6_21, -1, 1, 0},
201
- /* 22 */ { 3, s_6_22, -1, 9, 0},
202
- /* 23 */ { 4, s_6_23, -1, 2, 0},
203
- /* 24 */ { 4, s_6_24, -1, 1, 0},
204
- /* 25 */ { 6, s_6_25, -1, 2, 0},
205
- /* 26 */ { 6, s_6_26, -1, 5, 0},
206
- /* 27 */ { 6, s_6_27, -1, 2, 0},
207
- /* 28 */ { 4, s_6_28, -1, 1, 0},
208
- /* 29 */ { 5, s_6_29, -1, 1, 0},
209
- /* 30 */ { 4, s_6_30, -1, 9, 0},
210
- /* 31 */ { 5, s_6_31, -1, 1, 0},
211
- /* 32 */ { 6, s_6_32, -1, 3, 0},
212
- /* 33 */ { 6, s_6_33, -1, 8, 0},
213
- /* 34 */ { 5, s_6_34, -1, 1, 0},
214
- /* 35 */ { 5, s_6_35, -1, 1, 0},
215
- /* 36 */ { 7, s_6_36, -1, 2, 0},
216
- /* 37 */ { 7, s_6_37, -1, 4, 0},
217
- /* 38 */ { 6, s_6_38, -1, 2, 0},
218
- /* 39 */ { 5, s_6_39, -1, 2, 0},
219
- /* 40 */ { 4, s_6_40, -1, 1, 0},
220
- /* 41 */ { 5, s_6_41, -1, 1, 0},
221
- /* 42 */ { 4, s_6_42, -1, 1, 0},
222
- /* 43 */ { 8, s_6_43, -1, 1, 0},
223
- /* 44 */ { 8, s_6_44, -1, 1, 0},
224
- /* 45 */ { 4, s_6_45, -1, 9, 0}
225
- };
226
-
227
- static symbol s_7_0[2] = { 'y', 'a' };
228
- static symbol s_7_1[2] = { 'y', 'e' };
229
- static symbol s_7_2[3] = { 'y', 'a', 'n' };
230
- static symbol s_7_3[3] = { 'y', 'e', 'n' };
231
- static symbol s_7_4[5] = { 'y', 'e', 'r', 'o', 'n' };
232
- static symbol s_7_5[5] = { 'y', 'e', 'n', 'd', 'o' };
233
- static symbol s_7_6[2] = { 'y', 'o' };
234
- static symbol s_7_7[3] = { 'y', 'a', 's' };
235
- static symbol s_7_8[3] = { 'y', 'e', 's' };
236
- static symbol s_7_9[4] = { 'y', 'a', 'i', 's' };
237
- static symbol s_7_10[5] = { 'y', 'a', 'm', 'o', 's' };
238
- static symbol s_7_11[2] = { 'y', 0xF3 };
239
-
240
- static struct among a_7[12] =
241
- {
242
- /* 0 */ { 2, s_7_0, -1, 1, 0},
243
- /* 1 */ { 2, s_7_1, -1, 1, 0},
244
- /* 2 */ { 3, s_7_2, -1, 1, 0},
245
- /* 3 */ { 3, s_7_3, -1, 1, 0},
246
- /* 4 */ { 5, s_7_4, -1, 1, 0},
247
- /* 5 */ { 5, s_7_5, -1, 1, 0},
248
- /* 6 */ { 2, s_7_6, -1, 1, 0},
249
- /* 7 */ { 3, s_7_7, -1, 1, 0},
250
- /* 8 */ { 3, s_7_8, -1, 1, 0},
251
- /* 9 */ { 4, s_7_9, -1, 1, 0},
252
- /* 10 */ { 5, s_7_10, -1, 1, 0},
253
- /* 11 */ { 2, s_7_11, -1, 1, 0}
254
- };
255
-
256
- static symbol s_8_0[3] = { 'a', 'b', 'a' };
257
- static symbol s_8_1[3] = { 'a', 'd', 'a' };
258
- static symbol s_8_2[3] = { 'i', 'd', 'a' };
259
- static symbol s_8_3[3] = { 'a', 'r', 'a' };
260
- static symbol s_8_4[4] = { 'i', 'e', 'r', 'a' };
261
- static symbol s_8_5[2] = { 0xED, 'a' };
262
- static symbol s_8_6[4] = { 'a', 'r', 0xED, 'a' };
263
- static symbol s_8_7[4] = { 'e', 'r', 0xED, 'a' };
264
- static symbol s_8_8[4] = { 'i', 'r', 0xED, 'a' };
265
- static symbol s_8_9[2] = { 'a', 'd' };
266
- static symbol s_8_10[2] = { 'e', 'd' };
267
- static symbol s_8_11[2] = { 'i', 'd' };
268
- static symbol s_8_12[3] = { 'a', 's', 'e' };
269
- static symbol s_8_13[4] = { 'i', 'e', 's', 'e' };
270
- static symbol s_8_14[4] = { 'a', 's', 't', 'e' };
271
- static symbol s_8_15[4] = { 'i', 's', 't', 'e' };
272
- static symbol s_8_16[2] = { 'a', 'n' };
273
- static symbol s_8_17[4] = { 'a', 'b', 'a', 'n' };
274
- static symbol s_8_18[4] = { 'a', 'r', 'a', 'n' };
275
- static symbol s_8_19[5] = { 'i', 'e', 'r', 'a', 'n' };
276
- static symbol s_8_20[3] = { 0xED, 'a', 'n' };
277
- static symbol s_8_21[5] = { 'a', 'r', 0xED, 'a', 'n' };
278
- static symbol s_8_22[5] = { 'e', 'r', 0xED, 'a', 'n' };
279
- static symbol s_8_23[5] = { 'i', 'r', 0xED, 'a', 'n' };
280
- static symbol s_8_24[2] = { 'e', 'n' };
281
- static symbol s_8_25[4] = { 'a', 's', 'e', 'n' };
282
- static symbol s_8_26[5] = { 'i', 'e', 's', 'e', 'n' };
283
- static symbol s_8_27[4] = { 'a', 'r', 'o', 'n' };
284
- static symbol s_8_28[5] = { 'i', 'e', 'r', 'o', 'n' };
285
- static symbol s_8_29[4] = { 'a', 'r', 0xE1, 'n' };
286
- static symbol s_8_30[4] = { 'e', 'r', 0xE1, 'n' };
287
- static symbol s_8_31[4] = { 'i', 'r', 0xE1, 'n' };
288
- static symbol s_8_32[3] = { 'a', 'd', 'o' };
289
- static symbol s_8_33[3] = { 'i', 'd', 'o' };
290
- static symbol s_8_34[4] = { 'a', 'n', 'd', 'o' };
291
- static symbol s_8_35[5] = { 'i', 'e', 'n', 'd', 'o' };
292
- static symbol s_8_36[2] = { 'a', 'r' };
293
- static symbol s_8_37[2] = { 'e', 'r' };
294
- static symbol s_8_38[2] = { 'i', 'r' };
295
- static symbol s_8_39[2] = { 'a', 's' };
296
- static symbol s_8_40[4] = { 'a', 'b', 'a', 's' };
297
- static symbol s_8_41[4] = { 'a', 'd', 'a', 's' };
298
- static symbol s_8_42[4] = { 'i', 'd', 'a', 's' };
299
- static symbol s_8_43[4] = { 'a', 'r', 'a', 's' };
300
- static symbol s_8_44[5] = { 'i', 'e', 'r', 'a', 's' };
301
- static symbol s_8_45[3] = { 0xED, 'a', 's' };
302
- static symbol s_8_46[5] = { 'a', 'r', 0xED, 'a', 's' };
303
- static symbol s_8_47[5] = { 'e', 'r', 0xED, 'a', 's' };
304
- static symbol s_8_48[5] = { 'i', 'r', 0xED, 'a', 's' };
305
- static symbol s_8_49[2] = { 'e', 's' };
306
- static symbol s_8_50[4] = { 'a', 's', 'e', 's' };
307
- static symbol s_8_51[5] = { 'i', 'e', 's', 'e', 's' };
308
- static symbol s_8_52[5] = { 'a', 'b', 'a', 'i', 's' };
309
- static symbol s_8_53[5] = { 'a', 'r', 'a', 'i', 's' };
310
- static symbol s_8_54[6] = { 'i', 'e', 'r', 'a', 'i', 's' };
311
- static symbol s_8_55[4] = { 0xED, 'a', 'i', 's' };
312
- static symbol s_8_56[6] = { 'a', 'r', 0xED, 'a', 'i', 's' };
313
- static symbol s_8_57[6] = { 'e', 'r', 0xED, 'a', 'i', 's' };
314
- static symbol s_8_58[6] = { 'i', 'r', 0xED, 'a', 'i', 's' };
315
- static symbol s_8_59[5] = { 'a', 's', 'e', 'i', 's' };
316
- static symbol s_8_60[6] = { 'i', 'e', 's', 'e', 'i', 's' };
317
- static symbol s_8_61[6] = { 'a', 's', 't', 'e', 'i', 's' };
318
- static symbol s_8_62[6] = { 'i', 's', 't', 'e', 'i', 's' };
319
- static symbol s_8_63[3] = { 0xE1, 'i', 's' };
320
- static symbol s_8_64[3] = { 0xE9, 'i', 's' };
321
- static symbol s_8_65[5] = { 'a', 'r', 0xE9, 'i', 's' };
322
- static symbol s_8_66[5] = { 'e', 'r', 0xE9, 'i', 's' };
323
- static symbol s_8_67[5] = { 'i', 'r', 0xE9, 'i', 's' };
324
- static symbol s_8_68[4] = { 'a', 'd', 'o', 's' };
325
- static symbol s_8_69[4] = { 'i', 'd', 'o', 's' };
326
- static symbol s_8_70[4] = { 'a', 'm', 'o', 's' };
327
- static symbol s_8_71[6] = { 0xE1, 'b', 'a', 'm', 'o', 's' };
328
- static symbol s_8_72[6] = { 0xE1, 'r', 'a', 'm', 'o', 's' };
329
- static symbol s_8_73[7] = { 'i', 0xE9, 'r', 'a', 'm', 'o', 's' };
330
- static symbol s_8_74[5] = { 0xED, 'a', 'm', 'o', 's' };
331
- static symbol s_8_75[7] = { 'a', 'r', 0xED, 'a', 'm', 'o', 's' };
332
- static symbol s_8_76[7] = { 'e', 'r', 0xED, 'a', 'm', 'o', 's' };
333
- static symbol s_8_77[7] = { 'i', 'r', 0xED, 'a', 'm', 'o', 's' };
334
- static symbol s_8_78[4] = { 'e', 'm', 'o', 's' };
335
- static symbol s_8_79[6] = { 'a', 'r', 'e', 'm', 'o', 's' };
336
- static symbol s_8_80[6] = { 'e', 'r', 'e', 'm', 'o', 's' };
337
- static symbol s_8_81[6] = { 'i', 'r', 'e', 'm', 'o', 's' };
338
- static symbol s_8_82[6] = { 0xE1, 's', 'e', 'm', 'o', 's' };
339
- static symbol s_8_83[7] = { 'i', 0xE9, 's', 'e', 'm', 'o', 's' };
340
- static symbol s_8_84[4] = { 'i', 'm', 'o', 's' };
341
- static symbol s_8_85[4] = { 'a', 'r', 0xE1, 's' };
342
- static symbol s_8_86[4] = { 'e', 'r', 0xE1, 's' };
343
- static symbol s_8_87[4] = { 'i', 'r', 0xE1, 's' };
344
- static symbol s_8_88[2] = { 0xED, 's' };
345
- static symbol s_8_89[3] = { 'a', 'r', 0xE1 };
346
- static symbol s_8_90[3] = { 'e', 'r', 0xE1 };
347
- static symbol s_8_91[3] = { 'i', 'r', 0xE1 };
348
- static symbol s_8_92[3] = { 'a', 'r', 0xE9 };
349
- static symbol s_8_93[3] = { 'e', 'r', 0xE9 };
350
- static symbol s_8_94[3] = { 'i', 'r', 0xE9 };
351
- static symbol s_8_95[2] = { 'i', 0xF3 };
352
-
353
- static struct among a_8[96] =
354
- {
355
- /* 0 */ { 3, s_8_0, -1, 2, 0},
356
- /* 1 */ { 3, s_8_1, -1, 2, 0},
357
- /* 2 */ { 3, s_8_2, -1, 2, 0},
358
- /* 3 */ { 3, s_8_3, -1, 2, 0},
359
- /* 4 */ { 4, s_8_4, -1, 2, 0},
360
- /* 5 */ { 2, s_8_5, -1, 2, 0},
361
- /* 6 */ { 4, s_8_6, 5, 2, 0},
362
- /* 7 */ { 4, s_8_7, 5, 2, 0},
363
- /* 8 */ { 4, s_8_8, 5, 2, 0},
364
- /* 9 */ { 2, s_8_9, -1, 2, 0},
365
- /* 10 */ { 2, s_8_10, -1, 2, 0},
366
- /* 11 */ { 2, s_8_11, -1, 2, 0},
367
- /* 12 */ { 3, s_8_12, -1, 2, 0},
368
- /* 13 */ { 4, s_8_13, -1, 2, 0},
369
- /* 14 */ { 4, s_8_14, -1, 2, 0},
370
- /* 15 */ { 4, s_8_15, -1, 2, 0},
371
- /* 16 */ { 2, s_8_16, -1, 2, 0},
372
- /* 17 */ { 4, s_8_17, 16, 2, 0},
373
- /* 18 */ { 4, s_8_18, 16, 2, 0},
374
- /* 19 */ { 5, s_8_19, 16, 2, 0},
375
- /* 20 */ { 3, s_8_20, 16, 2, 0},
376
- /* 21 */ { 5, s_8_21, 20, 2, 0},
377
- /* 22 */ { 5, s_8_22, 20, 2, 0},
378
- /* 23 */ { 5, s_8_23, 20, 2, 0},
379
- /* 24 */ { 2, s_8_24, -1, 1, 0},
380
- /* 25 */ { 4, s_8_25, 24, 2, 0},
381
- /* 26 */ { 5, s_8_26, 24, 2, 0},
382
- /* 27 */ { 4, s_8_27, -1, 2, 0},
383
- /* 28 */ { 5, s_8_28, -1, 2, 0},
384
- /* 29 */ { 4, s_8_29, -1, 2, 0},
385
- /* 30 */ { 4, s_8_30, -1, 2, 0},
386
- /* 31 */ { 4, s_8_31, -1, 2, 0},
387
- /* 32 */ { 3, s_8_32, -1, 2, 0},
388
- /* 33 */ { 3, s_8_33, -1, 2, 0},
389
- /* 34 */ { 4, s_8_34, -1, 2, 0},
390
- /* 35 */ { 5, s_8_35, -1, 2, 0},
391
- /* 36 */ { 2, s_8_36, -1, 2, 0},
392
- /* 37 */ { 2, s_8_37, -1, 2, 0},
393
- /* 38 */ { 2, s_8_38, -1, 2, 0},
394
- /* 39 */ { 2, s_8_39, -1, 2, 0},
395
- /* 40 */ { 4, s_8_40, 39, 2, 0},
396
- /* 41 */ { 4, s_8_41, 39, 2, 0},
397
- /* 42 */ { 4, s_8_42, 39, 2, 0},
398
- /* 43 */ { 4, s_8_43, 39, 2, 0},
399
- /* 44 */ { 5, s_8_44, 39, 2, 0},
400
- /* 45 */ { 3, s_8_45, 39, 2, 0},
401
- /* 46 */ { 5, s_8_46, 45, 2, 0},
402
- /* 47 */ { 5, s_8_47, 45, 2, 0},
403
- /* 48 */ { 5, s_8_48, 45, 2, 0},
404
- /* 49 */ { 2, s_8_49, -1, 1, 0},
405
- /* 50 */ { 4, s_8_50, 49, 2, 0},
406
- /* 51 */ { 5, s_8_51, 49, 2, 0},
407
- /* 52 */ { 5, s_8_52, -1, 2, 0},
408
- /* 53 */ { 5, s_8_53, -1, 2, 0},
409
- /* 54 */ { 6, s_8_54, -1, 2, 0},
410
- /* 55 */ { 4, s_8_55, -1, 2, 0},
411
- /* 56 */ { 6, s_8_56, 55, 2, 0},
412
- /* 57 */ { 6, s_8_57, 55, 2, 0},
413
- /* 58 */ { 6, s_8_58, 55, 2, 0},
414
- /* 59 */ { 5, s_8_59, -1, 2, 0},
415
- /* 60 */ { 6, s_8_60, -1, 2, 0},
416
- /* 61 */ { 6, s_8_61, -1, 2, 0},
417
- /* 62 */ { 6, s_8_62, -1, 2, 0},
418
- /* 63 */ { 3, s_8_63, -1, 2, 0},
419
- /* 64 */ { 3, s_8_64, -1, 1, 0},
420
- /* 65 */ { 5, s_8_65, 64, 2, 0},
421
- /* 66 */ { 5, s_8_66, 64, 2, 0},
422
- /* 67 */ { 5, s_8_67, 64, 2, 0},
423
- /* 68 */ { 4, s_8_68, -1, 2, 0},
424
- /* 69 */ { 4, s_8_69, -1, 2, 0},
425
- /* 70 */ { 4, s_8_70, -1, 2, 0},
426
- /* 71 */ { 6, s_8_71, 70, 2, 0},
427
- /* 72 */ { 6, s_8_72, 70, 2, 0},
428
- /* 73 */ { 7, s_8_73, 70, 2, 0},
429
- /* 74 */ { 5, s_8_74, 70, 2, 0},
430
- /* 75 */ { 7, s_8_75, 74, 2, 0},
431
- /* 76 */ { 7, s_8_76, 74, 2, 0},
432
- /* 77 */ { 7, s_8_77, 74, 2, 0},
433
- /* 78 */ { 4, s_8_78, -1, 1, 0},
434
- /* 79 */ { 6, s_8_79, 78, 2, 0},
435
- /* 80 */ { 6, s_8_80, 78, 2, 0},
436
- /* 81 */ { 6, s_8_81, 78, 2, 0},
437
- /* 82 */ { 6, s_8_82, 78, 2, 0},
438
- /* 83 */ { 7, s_8_83, 78, 2, 0},
439
- /* 84 */ { 4, s_8_84, -1, 2, 0},
440
- /* 85 */ { 4, s_8_85, -1, 2, 0},
441
- /* 86 */ { 4, s_8_86, -1, 2, 0},
442
- /* 87 */ { 4, s_8_87, -1, 2, 0},
443
- /* 88 */ { 2, s_8_88, -1, 2, 0},
444
- /* 89 */ { 3, s_8_89, -1, 2, 0},
445
- /* 90 */ { 3, s_8_90, -1, 2, 0},
446
- /* 91 */ { 3, s_8_91, -1, 2, 0},
447
- /* 92 */ { 3, s_8_92, -1, 2, 0},
448
- /* 93 */ { 3, s_8_93, -1, 2, 0},
449
- /* 94 */ { 3, s_8_94, -1, 2, 0},
450
- /* 95 */ { 2, s_8_95, -1, 2, 0}
451
- };
452
-
453
- static symbol s_9_0[1] = { 'a' };
454
- static symbol s_9_1[1] = { 'e' };
455
- static symbol s_9_2[1] = { 'o' };
456
- static symbol s_9_3[2] = { 'o', 's' };
457
- static symbol s_9_4[1] = { 0xE1 };
458
- static symbol s_9_5[1] = { 0xE9 };
459
- static symbol s_9_6[1] = { 0xED };
460
- static symbol s_9_7[1] = { 0xF3 };
461
-
462
- static struct among a_9[8] =
463
- {
464
- /* 0 */ { 1, s_9_0, -1, 1, 0},
465
- /* 1 */ { 1, s_9_1, -1, 2, 0},
466
- /* 2 */ { 1, s_9_2, -1, 1, 0},
467
- /* 3 */ { 2, s_9_3, -1, 1, 0},
468
- /* 4 */ { 1, s_9_4, -1, 1, 0},
469
- /* 5 */ { 1, s_9_5, -1, 2, 0},
470
- /* 6 */ { 1, s_9_6, -1, 1, 0},
471
- /* 7 */ { 1, s_9_7, -1, 1, 0}
472
- };
473
-
474
- static unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 17, 4, 10 };
475
-
476
- static symbol s_0[] = { 'a' };
477
- static symbol s_1[] = { 'e' };
478
- static symbol s_2[] = { 'i' };
479
- static symbol s_3[] = { 'o' };
480
- static symbol s_4[] = { 'u' };
481
- static symbol s_5[] = { 'i', 'e', 'n', 'd', 'o' };
482
- static symbol s_6[] = { 'a', 'n', 'd', 'o' };
483
- static symbol s_7[] = { 'a', 'r' };
484
- static symbol s_8[] = { 'e', 'r' };
485
- static symbol s_9[] = { 'i', 'r' };
486
- static symbol s_10[] = { 'u' };
487
- static symbol s_11[] = { 'i', 'c' };
488
- static symbol s_12[] = { 'l', 'o', 'g' };
489
- static symbol s_13[] = { 'u' };
490
- static symbol s_14[] = { 'e', 'n', 't', 'e' };
491
- static symbol s_15[] = { 'a', 't' };
492
- static symbol s_16[] = { 'a', 't' };
493
- static symbol s_17[] = { 'u' };
494
- static symbol s_18[] = { 'u' };
495
- static symbol s_19[] = { 'g' };
496
- static symbol s_20[] = { 'u' };
497
- static symbol s_21[] = { 'g' };
498
-
499
- static int r_mark_regions(struct SN_env * z) {
500
- z->I[0] = z->l;
501
- z->I[1] = z->l;
502
- z->I[2] = z->l;
503
- { int c = z->c; /* do, line 37 */
504
- { int c = z->c; /* or, line 39 */
505
- if (!(in_grouping(z, g_v, 97, 252))) goto lab2;
506
- { int c = z->c; /* or, line 38 */
507
- if (!(out_grouping(z, g_v, 97, 252))) goto lab4;
508
- while(1) { /* gopast, line 38 */
509
- if (!(in_grouping(z, g_v, 97, 252))) goto lab5;
510
- break;
511
- lab5:
512
- if (z->c >= z->l) goto lab4;
513
- z->c++; /* gopast, line 38 */
514
- }
515
- goto lab3;
516
- lab4:
517
- z->c = c;
518
- if (!(in_grouping(z, g_v, 97, 252))) goto lab2;
519
- while(1) { /* gopast, line 38 */
520
- if (!(out_grouping(z, g_v, 97, 252))) goto lab6;
521
- break;
522
- lab6:
523
- if (z->c >= z->l) goto lab2;
524
- z->c++; /* gopast, line 38 */
525
- }
526
- }
527
- lab3:
528
- goto lab1;
529
- lab2:
530
- z->c = c;
531
- if (!(out_grouping(z, g_v, 97, 252))) goto lab0;
532
- { int c = z->c; /* or, line 40 */
533
- if (!(out_grouping(z, g_v, 97, 252))) goto lab8;
534
- while(1) { /* gopast, line 40 */
535
- if (!(in_grouping(z, g_v, 97, 252))) goto lab9;
536
- break;
537
- lab9:
538
- if (z->c >= z->l) goto lab8;
539
- z->c++; /* gopast, line 40 */
540
- }
541
- goto lab7;
542
- lab8:
543
- z->c = c;
544
- if (!(in_grouping(z, g_v, 97, 252))) goto lab0;
545
- if (z->c >= z->l) goto lab0;
546
- z->c++; /* next, line 40 */
547
- }
548
- lab7:
549
- ;
550
- }
551
- lab1:
552
- z->I[0] = z->c; /* setmark pV, line 41 */
553
- lab0:
554
- z->c = c;
555
- }
556
- { int c = z->c; /* do, line 43 */
557
- while(1) { /* gopast, line 44 */
558
- if (!(in_grouping(z, g_v, 97, 252))) goto lab11;
559
- break;
560
- lab11:
561
- if (z->c >= z->l) goto lab10;
562
- z->c++; /* gopast, line 44 */
563
- }
564
- while(1) { /* gopast, line 44 */
565
- if (!(out_grouping(z, g_v, 97, 252))) goto lab12;
566
- break;
567
- lab12:
568
- if (z->c >= z->l) goto lab10;
569
- z->c++; /* gopast, line 44 */
570
- }
571
- z->I[1] = z->c; /* setmark p1, line 44 */
572
- while(1) { /* gopast, line 45 */
573
- if (!(in_grouping(z, g_v, 97, 252))) goto lab13;
574
- break;
575
- lab13:
576
- if (z->c >= z->l) goto lab10;
577
- z->c++; /* gopast, line 45 */
578
- }
579
- while(1) { /* gopast, line 45 */
580
- if (!(out_grouping(z, g_v, 97, 252))) goto lab14;
581
- break;
582
- lab14:
583
- if (z->c >= z->l) goto lab10;
584
- z->c++; /* gopast, line 45 */
585
- }
586
- z->I[2] = z->c; /* setmark p2, line 45 */
587
- lab10:
588
- z->c = c;
589
- }
590
- return 1;
591
- }
592
-
593
- static int r_postlude(struct SN_env * z) {
594
- int among_var;
595
- while(1) { /* repeat, line 49 */
596
- int c = z->c;
597
- z->bra = z->c; /* [, line 50 */
598
- among_var = find_among(z, a_0, 6); /* substring, line 50 */
599
- if (!(among_var)) goto lab0;
600
- z->ket = z->c; /* ], line 50 */
601
- switch(among_var) {
602
- case 0: goto lab0;
603
- case 1:
604
- { int ret;
605
- ret = slice_from_s(z, 1, s_0); /* <-, line 51 */
606
- if (ret < 0) return ret;
607
- }
608
- break;
609
- case 2:
610
- { int ret;
611
- ret = slice_from_s(z, 1, s_1); /* <-, line 52 */
612
- if (ret < 0) return ret;
613
- }
614
- break;
615
- case 3:
616
- { int ret;
617
- ret = slice_from_s(z, 1, s_2); /* <-, line 53 */
618
- if (ret < 0) return ret;
619
- }
620
- break;
621
- case 4:
622
- { int ret;
623
- ret = slice_from_s(z, 1, s_3); /* <-, line 54 */
624
- if (ret < 0) return ret;
625
- }
626
- break;
627
- case 5:
628
- { int ret;
629
- ret = slice_from_s(z, 1, s_4); /* <-, line 55 */
630
- if (ret < 0) return ret;
631
- }
632
- break;
633
- case 6:
634
- if (z->c >= z->l) goto lab0;
635
- z->c++; /* next, line 57 */
636
- break;
637
- }
638
- continue;
639
- lab0:
640
- z->c = c;
641
- break;
642
- }
643
- return 1;
644
- }
645
-
646
- static int r_RV(struct SN_env * z) {
647
- if (!(z->I[0] <= z->c)) return 0;
648
- return 1;
649
- }
650
-
651
- static int r_R1(struct SN_env * z) {
652
- if (!(z->I[1] <= z->c)) return 0;
653
- return 1;
654
- }
655
-
656
- static int r_R2(struct SN_env * z) {
657
- if (!(z->I[2] <= z->c)) return 0;
658
- return 1;
659
- }
660
-
661
- static int r_attached_pronoun(struct SN_env * z) {
662
- int among_var;
663
- z->ket = z->c; /* [, line 68 */
664
- if (!(find_among_b(z, a_1, 13))) return 0; /* substring, line 68 */
665
- z->bra = z->c; /* ], line 68 */
666
- among_var = find_among_b(z, a_2, 11); /* substring, line 72 */
667
- if (!(among_var)) return 0;
668
- { int ret = r_RV(z);
669
- if (ret == 0) return 0; /* call RV, line 72 */
670
- if (ret < 0) return ret;
671
- }
672
- switch(among_var) {
673
- case 0: return 0;
674
- case 1:
675
- z->bra = z->c; /* ], line 73 */
676
- { int ret;
677
- ret = slice_from_s(z, 5, s_5); /* <-, line 73 */
678
- if (ret < 0) return ret;
679
- }
680
- break;
681
- case 2:
682
- z->bra = z->c; /* ], line 74 */
683
- { int ret;
684
- ret = slice_from_s(z, 4, s_6); /* <-, line 74 */
685
- if (ret < 0) return ret;
686
- }
687
- break;
688
- case 3:
689
- z->bra = z->c; /* ], line 75 */
690
- { int ret;
691
- ret = slice_from_s(z, 2, s_7); /* <-, line 75 */
692
- if (ret < 0) return ret;
693
- }
694
- break;
695
- case 4:
696
- z->bra = z->c; /* ], line 76 */
697
- { int ret;
698
- ret = slice_from_s(z, 2, s_8); /* <-, line 76 */
699
- if (ret < 0) return ret;
700
- }
701
- break;
702
- case 5:
703
- z->bra = z->c; /* ], line 77 */
704
- { int ret;
705
- ret = slice_from_s(z, 2, s_9); /* <-, line 77 */
706
- if (ret < 0) return ret;
707
- }
708
- break;
709
- case 6:
710
- { int ret;
711
- ret = slice_del(z); /* delete, line 81 */
712
- if (ret < 0) return ret;
713
- }
714
- break;
715
- case 7:
716
- if (!(eq_s_b(z, 1, s_10))) return 0;
717
- { int ret;
718
- ret = slice_del(z); /* delete, line 82 */
719
- if (ret < 0) return ret;
720
- }
721
- break;
722
- }
723
- return 1;
724
- }
725
-
726
- static int r_standard_suffix(struct SN_env * z) {
727
- int among_var;
728
- z->ket = z->c; /* [, line 87 */
729
- among_var = find_among_b(z, a_6, 46); /* substring, line 87 */
730
- if (!(among_var)) return 0;
731
- z->bra = z->c; /* ], line 87 */
732
- switch(among_var) {
733
- case 0: return 0;
734
- case 1:
735
- { int ret = r_R2(z);
736
- if (ret == 0) return 0; /* call R2, line 99 */
737
- if (ret < 0) return ret;
738
- }
739
- { int ret;
740
- ret = slice_del(z); /* delete, line 99 */
741
- if (ret < 0) return ret;
742
- }
743
- break;
744
- case 2:
745
- { int ret = r_R2(z);
746
- if (ret == 0) return 0; /* call R2, line 105 */
747
- if (ret < 0) return ret;
748
- }
749
- { int ret;
750
- ret = slice_del(z); /* delete, line 105 */
751
- if (ret < 0) return ret;
752
- }
753
- { int m = z->l - z->c; (void) m; /* try, line 106 */
754
- z->ket = z->c; /* [, line 106 */
755
- if (!(eq_s_b(z, 2, s_11))) { z->c = z->l - m; goto lab0; }
756
- z->bra = z->c; /* ], line 106 */
757
- { int ret = r_R2(z);
758
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 106 */
759
- if (ret < 0) return ret;
760
- }
761
- { int ret;
762
- ret = slice_del(z); /* delete, line 106 */
763
- if (ret < 0) return ret;
764
- }
765
- lab0:
766
- ;
767
- }
768
- break;
769
- case 3:
770
- { int ret = r_R2(z);
771
- if (ret == 0) return 0; /* call R2, line 111 */
772
- if (ret < 0) return ret;
773
- }
774
- { int ret;
775
- ret = slice_from_s(z, 3, s_12); /* <-, line 111 */
776
- if (ret < 0) return ret;
777
- }
778
- break;
779
- case 4:
780
- { int ret = r_R2(z);
781
- if (ret == 0) return 0; /* call R2, line 115 */
782
- if (ret < 0) return ret;
783
- }
784
- { int ret;
785
- ret = slice_from_s(z, 1, s_13); /* <-, line 115 */
786
- if (ret < 0) return ret;
787
- }
788
- break;
789
- case 5:
790
- { int ret = r_R2(z);
791
- if (ret == 0) return 0; /* call R2, line 119 */
792
- if (ret < 0) return ret;
793
- }
794
- { int ret;
795
- ret = slice_from_s(z, 4, s_14); /* <-, line 119 */
796
- if (ret < 0) return ret;
797
- }
798
- break;
799
- case 6:
800
- { int ret = r_R1(z);
801
- if (ret == 0) return 0; /* call R1, line 123 */
802
- if (ret < 0) return ret;
803
- }
804
- { int ret;
805
- ret = slice_del(z); /* delete, line 123 */
806
- if (ret < 0) return ret;
807
- }
808
- { int m = z->l - z->c; (void) m; /* try, line 124 */
809
- z->ket = z->c; /* [, line 125 */
810
- among_var = find_among_b(z, a_3, 4); /* substring, line 125 */
811
- if (!(among_var)) { z->c = z->l - m; goto lab1; }
812
- z->bra = z->c; /* ], line 125 */
813
- { int ret = r_R2(z);
814
- if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 125 */
815
- if (ret < 0) return ret;
816
- }
817
- { int ret;
818
- ret = slice_del(z); /* delete, line 125 */
819
- if (ret < 0) return ret;
820
- }
821
- switch(among_var) {
822
- case 0: { z->c = z->l - m; goto lab1; }
823
- case 1:
824
- z->ket = z->c; /* [, line 126 */
825
- if (!(eq_s_b(z, 2, s_15))) { z->c = z->l - m; goto lab1; }
826
- z->bra = z->c; /* ], line 126 */
827
- { int ret = r_R2(z);
828
- if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 126 */
829
- if (ret < 0) return ret;
830
- }
831
- { int ret;
832
- ret = slice_del(z); /* delete, line 126 */
833
- if (ret < 0) return ret;
834
- }
835
- break;
836
- }
837
- lab1:
838
- ;
839
- }
840
- break;
841
- case 7:
842
- { int ret = r_R2(z);
843
- if (ret == 0) return 0; /* call R2, line 135 */
844
- if (ret < 0) return ret;
845
- }
846
- { int ret;
847
- ret = slice_del(z); /* delete, line 135 */
848
- if (ret < 0) return ret;
849
- }
850
- { int m = z->l - z->c; (void) m; /* try, line 136 */
851
- z->ket = z->c; /* [, line 137 */
852
- among_var = find_among_b(z, a_4, 3); /* substring, line 137 */
853
- if (!(among_var)) { z->c = z->l - m; goto lab2; }
854
- z->bra = z->c; /* ], line 137 */
855
- switch(among_var) {
856
- case 0: { z->c = z->l - m; goto lab2; }
857
- case 1:
858
- { int ret = r_R2(z);
859
- if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 140 */
860
- if (ret < 0) return ret;
861
- }
862
- { int ret;
863
- ret = slice_del(z); /* delete, line 140 */
864
- if (ret < 0) return ret;
865
- }
866
- break;
867
- }
868
- lab2:
869
- ;
870
- }
871
- break;
872
- case 8:
873
- { int ret = r_R2(z);
874
- if (ret == 0) return 0; /* call R2, line 147 */
875
- if (ret < 0) return ret;
876
- }
877
- { int ret;
878
- ret = slice_del(z); /* delete, line 147 */
879
- if (ret < 0) return ret;
880
- }
881
- { int m = z->l - z->c; (void) m; /* try, line 148 */
882
- z->ket = z->c; /* [, line 149 */
883
- among_var = find_among_b(z, a_5, 3); /* substring, line 149 */
884
- if (!(among_var)) { z->c = z->l - m; goto lab3; }
885
- z->bra = z->c; /* ], line 149 */
886
- switch(among_var) {
887
- case 0: { z->c = z->l - m; goto lab3; }
888
- case 1:
889
- { int ret = r_R2(z);
890
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 152 */
891
- if (ret < 0) return ret;
892
- }
893
- { int ret;
894
- ret = slice_del(z); /* delete, line 152 */
895
- if (ret < 0) return ret;
896
- }
897
- break;
898
- }
899
- lab3:
900
- ;
901
- }
902
- break;
903
- case 9:
904
- { int ret = r_R2(z);
905
- if (ret == 0) return 0; /* call R2, line 159 */
906
- if (ret < 0) return ret;
907
- }
908
- { int ret;
909
- ret = slice_del(z); /* delete, line 159 */
910
- if (ret < 0) return ret;
911
- }
912
- { int m = z->l - z->c; (void) m; /* try, line 160 */
913
- z->ket = z->c; /* [, line 161 */
914
- if (!(eq_s_b(z, 2, s_16))) { z->c = z->l - m; goto lab4; }
915
- z->bra = z->c; /* ], line 161 */
916
- { int ret = r_R2(z);
917
- if (ret == 0) { z->c = z->l - m; goto lab4; } /* call R2, line 161 */
918
- if (ret < 0) return ret;
919
- }
920
- { int ret;
921
- ret = slice_del(z); /* delete, line 161 */
922
- if (ret < 0) return ret;
923
- }
924
- lab4:
925
- ;
926
- }
927
- break;
928
- }
929
- return 1;
930
- }
931
-
932
- static int r_y_verb_suffix(struct SN_env * z) {
933
- int among_var;
934
- { int m3; /* setlimit, line 168 */
935
- int m = z->l - z->c; (void) m;
936
- if (z->c < z->I[0]) return 0;
937
- z->c = z->I[0]; /* tomark, line 168 */
938
- m3 = z->lb; z->lb = z->c;
939
- z->c = z->l - m;
940
- z->ket = z->c; /* [, line 168 */
941
- among_var = find_among_b(z, a_7, 12); /* substring, line 168 */
942
- if (!(among_var)) { z->lb = m3; return 0; }
943
- z->bra = z->c; /* ], line 168 */
944
- z->lb = m3;
945
- }
946
- switch(among_var) {
947
- case 0: return 0;
948
- case 1:
949
- if (!(eq_s_b(z, 1, s_17))) return 0;
950
- { int ret;
951
- ret = slice_del(z); /* delete, line 171 */
952
- if (ret < 0) return ret;
953
- }
954
- break;
955
- }
956
- return 1;
957
- }
958
-
959
- static int r_verb_suffix(struct SN_env * z) {
960
- int among_var;
961
- { int m3; /* setlimit, line 176 */
962
- int m = z->l - z->c; (void) m;
963
- if (z->c < z->I[0]) return 0;
964
- z->c = z->I[0]; /* tomark, line 176 */
965
- m3 = z->lb; z->lb = z->c;
966
- z->c = z->l - m;
967
- z->ket = z->c; /* [, line 176 */
968
- among_var = find_among_b(z, a_8, 96); /* substring, line 176 */
969
- if (!(among_var)) { z->lb = m3; return 0; }
970
- z->bra = z->c; /* ], line 176 */
971
- z->lb = m3;
972
- }
973
- switch(among_var) {
974
- case 0: return 0;
975
- case 1:
976
- { int m = z->l - z->c; (void) m; /* try, line 179 */
977
- if (!(eq_s_b(z, 1, s_18))) { z->c = z->l - m; goto lab0; }
978
- { int m_test = z->l - z->c; /* test, line 179 */
979
- if (!(eq_s_b(z, 1, s_19))) { z->c = z->l - m; goto lab0; }
980
- z->c = z->l - m_test;
981
- }
982
- lab0:
983
- ;
984
- }
985
- z->bra = z->c; /* ], line 179 */
986
- { int ret;
987
- ret = slice_del(z); /* delete, line 179 */
988
- if (ret < 0) return ret;
989
- }
990
- break;
991
- case 2:
992
- { int ret;
993
- ret = slice_del(z); /* delete, line 200 */
994
- if (ret < 0) return ret;
995
- }
996
- break;
997
- }
998
- return 1;
999
- }
1000
-
1001
- static int r_residual_suffix(struct SN_env * z) {
1002
- int among_var;
1003
- z->ket = z->c; /* [, line 205 */
1004
- among_var = find_among_b(z, a_9, 8); /* substring, line 205 */
1005
- if (!(among_var)) return 0;
1006
- z->bra = z->c; /* ], line 205 */
1007
- switch(among_var) {
1008
- case 0: return 0;
1009
- case 1:
1010
- { int ret = r_RV(z);
1011
- if (ret == 0) return 0; /* call RV, line 208 */
1012
- if (ret < 0) return ret;
1013
- }
1014
- { int ret;
1015
- ret = slice_del(z); /* delete, line 208 */
1016
- if (ret < 0) return ret;
1017
- }
1018
- break;
1019
- case 2:
1020
- { int ret = r_RV(z);
1021
- if (ret == 0) return 0; /* call RV, line 210 */
1022
- if (ret < 0) return ret;
1023
- }
1024
- { int ret;
1025
- ret = slice_del(z); /* delete, line 210 */
1026
- if (ret < 0) return ret;
1027
- }
1028
- { int m = z->l - z->c; (void) m; /* try, line 210 */
1029
- z->ket = z->c; /* [, line 210 */
1030
- if (!(eq_s_b(z, 1, s_20))) { z->c = z->l - m; goto lab0; }
1031
- z->bra = z->c; /* ], line 210 */
1032
- { int m_test = z->l - z->c; /* test, line 210 */
1033
- if (!(eq_s_b(z, 1, s_21))) { z->c = z->l - m; goto lab0; }
1034
- z->c = z->l - m_test;
1035
- }
1036
- { int ret = r_RV(z);
1037
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call RV, line 210 */
1038
- if (ret < 0) return ret;
1039
- }
1040
- { int ret;
1041
- ret = slice_del(z); /* delete, line 210 */
1042
- if (ret < 0) return ret;
1043
- }
1044
- lab0:
1045
- ;
1046
- }
1047
- break;
1048
- }
1049
- return 1;
1050
- }
1051
-
1052
- extern int spanish_ISO_8859_1_stem(struct SN_env * z) {
1053
- { int c = z->c; /* do, line 216 */
1054
- { int ret = r_mark_regions(z);
1055
- if (ret == 0) goto lab0; /* call mark_regions, line 216 */
1056
- if (ret < 0) return ret;
1057
- }
1058
- lab0:
1059
- z->c = c;
1060
- }
1061
- z->lb = z->c; z->c = z->l; /* backwards, line 217 */
1062
-
1063
- { int m = z->l - z->c; (void) m; /* do, line 218 */
1064
- { int ret = r_attached_pronoun(z);
1065
- if (ret == 0) goto lab1; /* call attached_pronoun, line 218 */
1066
- if (ret < 0) return ret;
1067
- }
1068
- lab1:
1069
- z->c = z->l - m;
1070
- }
1071
- { int m = z->l - z->c; (void) m; /* do, line 219 */
1072
- { int m = z->l - z->c; (void) m; /* or, line 219 */
1073
- { int ret = r_standard_suffix(z);
1074
- if (ret == 0) goto lab4; /* call standard_suffix, line 219 */
1075
- if (ret < 0) return ret;
1076
- }
1077
- goto lab3;
1078
- lab4:
1079
- z->c = z->l - m;
1080
- { int ret = r_y_verb_suffix(z);
1081
- if (ret == 0) goto lab5; /* call y_verb_suffix, line 220 */
1082
- if (ret < 0) return ret;
1083
- }
1084
- goto lab3;
1085
- lab5:
1086
- z->c = z->l - m;
1087
- { int ret = r_verb_suffix(z);
1088
- if (ret == 0) goto lab2; /* call verb_suffix, line 221 */
1089
- if (ret < 0) return ret;
1090
- }
1091
- }
1092
- lab3:
1093
- lab2:
1094
- z->c = z->l - m;
1095
- }
1096
- { int m = z->l - z->c; (void) m; /* do, line 223 */
1097
- { int ret = r_residual_suffix(z);
1098
- if (ret == 0) goto lab6; /* call residual_suffix, line 223 */
1099
- if (ret < 0) return ret;
1100
- }
1101
- lab6:
1102
- z->c = z->l - m;
1103
- }
1104
- z->c = z->lb;
1105
- { int c = z->c; /* do, line 225 */
1106
- { int ret = r_postlude(z);
1107
- if (ret == 0) goto lab7; /* call postlude, line 225 */
1108
- if (ret < 0) return ret;
1109
- }
1110
- lab7:
1111
- z->c = c;
1112
- }
1113
- return 1;
1114
- }
1115
-
1116
- extern struct SN_env * spanish_ISO_8859_1_create_env(void) { return SN_create_env(0, 3, 0); }
1117
-
1118
- extern void spanish_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z); }
1119
-