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,302 +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_UTF_8_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_UTF_8_create_env(void);
13
- extern void norwegian_UTF_8_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 = skip_utf8(z->p, z->c, 0, z->l, + 3);
125
- if (c < 0) 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_U(z, g_v, 97, 248))) goto lab0;
134
- z->c = c;
135
- break;
136
- lab0:
137
- z->c = c;
138
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
139
- if (c < 0) return 0;
140
- z->c = c; /* goto, line 31 */
141
- }
142
- }
143
- while(1) { /* gopast, line 31 */
144
- if (!(out_grouping_U(z, g_v, 97, 248))) goto lab1;
145
- break;
146
- lab1:
147
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
148
- if (c < 0) return 0;
149
- z->c = c; /* gopast, line 31 */
150
- }
151
- }
152
- z->I[0] = z->c; /* setmark p1, line 31 */
153
- /* try, line 32 */
154
- if (!(z->I[0] < z->I[1])) goto lab2;
155
- z->I[0] = z->I[1];
156
- lab2:
157
- return 1;
158
- }
159
-
160
- static int r_main_suffix(struct SN_env * z) {
161
- int among_var;
162
- { int m3; /* setlimit, line 38 */
163
- int m = z->l - z->c; (void) m;
164
- if (z->c < z->I[0]) return 0;
165
- z->c = z->I[0]; /* tomark, line 38 */
166
- m3 = z->lb; z->lb = z->c;
167
- z->c = z->l - m;
168
- z->ket = z->c; /* [, line 38 */
169
- among_var = find_among_b(z, a_0, 29); /* substring, line 38 */
170
- if (!(among_var)) { z->lb = m3; return 0; }
171
- z->bra = z->c; /* ], line 38 */
172
- z->lb = m3;
173
- }
174
- switch(among_var) {
175
- case 0: return 0;
176
- case 1:
177
- { int ret;
178
- ret = slice_del(z); /* delete, line 44 */
179
- if (ret < 0) return ret;
180
- }
181
- break;
182
- case 2:
183
- { int m = z->l - z->c; (void) m; /* or, line 46 */
184
- if (!(in_grouping_b_U(z, g_s_ending, 98, 122))) goto lab1;
185
- goto lab0;
186
- lab1:
187
- z->c = z->l - m;
188
- if (!(eq_s_b(z, 1, s_0))) return 0;
189
- if (!(out_grouping_b_U(z, g_v, 97, 248))) return 0;
190
- }
191
- lab0:
192
- { int ret;
193
- ret = slice_del(z); /* delete, line 46 */
194
- if (ret < 0) return ret;
195
- }
196
- break;
197
- case 3:
198
- { int ret;
199
- ret = slice_from_s(z, 2, s_1); /* <-, line 48 */
200
- if (ret < 0) return ret;
201
- }
202
- break;
203
- }
204
- return 1;
205
- }
206
-
207
- static int r_consonant_pair(struct SN_env * z) {
208
- { int m_test = z->l - z->c; /* test, line 53 */
209
- { int m3; /* setlimit, line 54 */
210
- int m = z->l - z->c; (void) m;
211
- if (z->c < z->I[0]) return 0;
212
- z->c = z->I[0]; /* tomark, line 54 */
213
- m3 = z->lb; z->lb = z->c;
214
- z->c = z->l - m;
215
- z->ket = z->c; /* [, line 54 */
216
- if (!(find_among_b(z, a_1, 2))) { z->lb = m3; return 0; } /* substring, line 54 */
217
- z->bra = z->c; /* ], line 54 */
218
- z->lb = m3;
219
- }
220
- z->c = z->l - m_test;
221
- }
222
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
223
- if (c < 0) return 0;
224
- z->c = c; /* next, line 59 */
225
- }
226
- z->bra = z->c; /* ], line 59 */
227
- { int ret;
228
- ret = slice_del(z); /* delete, line 59 */
229
- if (ret < 0) return ret;
230
- }
231
- return 1;
232
- }
233
-
234
- static int r_other_suffix(struct SN_env * z) {
235
- int among_var;
236
- { int m3; /* setlimit, line 63 */
237
- int m = z->l - z->c; (void) m;
238
- if (z->c < z->I[0]) return 0;
239
- z->c = z->I[0]; /* tomark, line 63 */
240
- m3 = z->lb; z->lb = z->c;
241
- z->c = z->l - m;
242
- z->ket = z->c; /* [, line 63 */
243
- among_var = find_among_b(z, a_2, 11); /* substring, line 63 */
244
- if (!(among_var)) { z->lb = m3; return 0; }
245
- z->bra = z->c; /* ], line 63 */
246
- z->lb = m3;
247
- }
248
- switch(among_var) {
249
- case 0: return 0;
250
- case 1:
251
- { int ret;
252
- ret = slice_del(z); /* delete, line 67 */
253
- if (ret < 0) return ret;
254
- }
255
- break;
256
- }
257
- return 1;
258
- }
259
-
260
- extern int norwegian_UTF_8_stem(struct SN_env * z) {
261
- { int c = z->c; /* do, line 74 */
262
- { int ret = r_mark_regions(z);
263
- if (ret == 0) goto lab0; /* call mark_regions, line 74 */
264
- if (ret < 0) return ret;
265
- }
266
- lab0:
267
- z->c = c;
268
- }
269
- z->lb = z->c; z->c = z->l; /* backwards, line 75 */
270
-
271
- { int m = z->l - z->c; (void) m; /* do, line 76 */
272
- { int ret = r_main_suffix(z);
273
- if (ret == 0) goto lab1; /* call main_suffix, line 76 */
274
- if (ret < 0) return ret;
275
- }
276
- lab1:
277
- z->c = z->l - m;
278
- }
279
- { int m = z->l - z->c; (void) m; /* do, line 77 */
280
- { int ret = r_consonant_pair(z);
281
- if (ret == 0) goto lab2; /* call consonant_pair, line 77 */
282
- if (ret < 0) return ret;
283
- }
284
- lab2:
285
- z->c = z->l - m;
286
- }
287
- { int m = z->l - z->c; (void) m; /* do, line 78 */
288
- { int ret = r_other_suffix(z);
289
- if (ret == 0) goto lab3; /* call other_suffix, line 78 */
290
- if (ret < 0) return ret;
291
- }
292
- lab3:
293
- z->c = z->l - m;
294
- }
295
- z->c = z->lb;
296
- return 1;
297
- }
298
-
299
- extern struct SN_env * norwegian_UTF_8_create_env(void) { return SN_create_env(0, 2, 0); }
300
-
301
- extern void norwegian_UTF_8_close_env(struct SN_env * z) { SN_close_env(z); }
302
-
@@ -1,1055 +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 portuguese_UTF_8_stem(struct SN_env * z);
7
- static int r_residual_form(struct SN_env * z);
8
- static int r_residual_suffix(struct SN_env * z);
9
- static int r_verb_suffix(struct SN_env * z);
10
- static int r_standard_suffix(struct SN_env * z);
11
- static int r_R2(struct SN_env * z);
12
- static int r_R1(struct SN_env * z);
13
- static int r_RV(struct SN_env * z);
14
- static int r_mark_regions(struct SN_env * z);
15
- static int r_postlude(struct SN_env * z);
16
- static int r_prelude(struct SN_env * z);
17
-
18
- extern struct SN_env * portuguese_UTF_8_create_env(void);
19
- extern void portuguese_UTF_8_close_env(struct SN_env * z);
20
-
21
- static symbol s_0_1[2] = { 0xC3, 0xA3 };
22
- static symbol s_0_2[2] = { 0xC3, 0xB5 };
23
-
24
- static struct among a_0[3] =
25
- {
26
- /* 0 */ { 0, 0, -1, 3, 0},
27
- /* 1 */ { 2, s_0_1, 0, 1, 0},
28
- /* 2 */ { 2, s_0_2, 0, 2, 0}
29
- };
30
-
31
- static symbol s_1_1[2] = { 'a', '~' };
32
- static symbol s_1_2[2] = { 'o', '~' };
33
-
34
- static struct among a_1[3] =
35
- {
36
- /* 0 */ { 0, 0, -1, 3, 0},
37
- /* 1 */ { 2, s_1_1, 0, 1, 0},
38
- /* 2 */ { 2, s_1_2, 0, 2, 0}
39
- };
40
-
41
- static symbol s_2_0[2] = { 'i', 'c' };
42
- static symbol s_2_1[2] = { 'a', 'd' };
43
- static symbol s_2_2[2] = { 'o', 's' };
44
- static symbol s_2_3[2] = { 'i', 'v' };
45
-
46
- static struct among a_2[4] =
47
- {
48
- /* 0 */ { 2, s_2_0, -1, -1, 0},
49
- /* 1 */ { 2, s_2_1, -1, -1, 0},
50
- /* 2 */ { 2, s_2_2, -1, -1, 0},
51
- /* 3 */ { 2, s_2_3, -1, 1, 0}
52
- };
53
-
54
- static symbol s_3_0[4] = { 'a', 'n', 't', 'e' };
55
- static symbol s_3_1[4] = { 'a', 'v', 'e', 'l' };
56
- static symbol s_3_2[5] = { 0xC3, 0xAD, 'v', 'e', 'l' };
57
-
58
- static struct among a_3[3] =
59
- {
60
- /* 0 */ { 4, s_3_0, -1, 1, 0},
61
- /* 1 */ { 4, s_3_1, -1, 1, 0},
62
- /* 2 */ { 5, s_3_2, -1, 1, 0}
63
- };
64
-
65
- static symbol s_4_0[2] = { 'i', 'c' };
66
- static symbol s_4_1[4] = { 'a', 'b', 'i', 'l' };
67
- static symbol s_4_2[2] = { 'i', 'v' };
68
-
69
- static struct among a_4[3] =
70
- {
71
- /* 0 */ { 2, s_4_0, -1, 1, 0},
72
- /* 1 */ { 4, s_4_1, -1, 1, 0},
73
- /* 2 */ { 2, s_4_2, -1, 1, 0}
74
- };
75
-
76
- static symbol s_5_0[3] = { 'i', 'c', 'a' };
77
- static symbol s_5_1[6] = { 0xC3, 0xA2, 'n', 'c', 'i', 'a' };
78
- static symbol s_5_2[6] = { 0xC3, 0xAA, 'n', 'c', 'i', 'a' };
79
- static symbol s_5_3[3] = { 'i', 'r', 'a' };
80
- static symbol s_5_4[5] = { 'a', 'd', 'o', 'r', 'a' };
81
- static symbol s_5_5[3] = { 'o', 's', 'a' };
82
- static symbol s_5_6[4] = { 'i', 's', 't', 'a' };
83
- static symbol s_5_7[3] = { 'i', 'v', 'a' };
84
- static symbol s_5_8[3] = { 'e', 'z', 'a' };
85
- static symbol s_5_9[6] = { 'l', 'o', 'g', 0xC3, 0xAD, 'a' };
86
- static symbol s_5_10[5] = { 'i', 'd', 'a', 'd', 'e' };
87
- static symbol s_5_11[4] = { 'a', 'n', 't', 'e' };
88
- static symbol s_5_12[5] = { 'm', 'e', 'n', 't', 'e' };
89
- static symbol s_5_13[6] = { 'a', 'm', 'e', 'n', 't', 'e' };
90
- static symbol s_5_14[5] = { 0xC3, 0xA1, 'v', 'e', 'l' };
91
- static symbol s_5_15[5] = { 0xC3, 0xAD, 'v', 'e', 'l' };
92
- static symbol s_5_16[6] = { 'u', 'c', 'i', 0xC3, 0xB3, 'n' };
93
- static symbol s_5_17[3] = { 'i', 'c', 'o' };
94
- static symbol s_5_18[4] = { 'i', 's', 'm', 'o' };
95
- static symbol s_5_19[3] = { 'o', 's', 'o' };
96
- static symbol s_5_20[6] = { 'a', 'm', 'e', 'n', 't', 'o' };
97
- static symbol s_5_21[6] = { 'i', 'm', 'e', 'n', 't', 'o' };
98
- static symbol s_5_22[3] = { 'i', 'v', 'o' };
99
- static symbol s_5_23[6] = { 'a', 0xC3, 0xA7, 'a', '~', 'o' };
100
- static symbol s_5_24[4] = { 'a', 'd', 'o', 'r' };
101
- static symbol s_5_25[4] = { 'i', 'c', 'a', 's' };
102
- static symbol s_5_26[7] = { 0xC3, 0xAA, 'n', 'c', 'i', 'a', 's' };
103
- static symbol s_5_27[4] = { 'i', 'r', 'a', 's' };
104
- static symbol s_5_28[6] = { 'a', 'd', 'o', 'r', 'a', 's' };
105
- static symbol s_5_29[4] = { 'o', 's', 'a', 's' };
106
- static symbol s_5_30[5] = { 'i', 's', 't', 'a', 's' };
107
- static symbol s_5_31[4] = { 'i', 'v', 'a', 's' };
108
- static symbol s_5_32[4] = { 'e', 'z', 'a', 's' };
109
- static symbol s_5_33[7] = { 'l', 'o', 'g', 0xC3, 0xAD, 'a', 's' };
110
- static symbol s_5_34[6] = { 'i', 'd', 'a', 'd', 'e', 's' };
111
- static symbol s_5_35[7] = { 'u', 'c', 'i', 'o', 'n', 'e', 's' };
112
- static symbol s_5_36[6] = { 'a', 'd', 'o', 'r', 'e', 's' };
113
- static symbol s_5_37[5] = { 'a', 'n', 't', 'e', 's' };
114
- static symbol s_5_38[7] = { 'a', 0xC3, 0xA7, 'o', '~', 'e', 's' };
115
- static symbol s_5_39[4] = { 'i', 'c', 'o', 's' };
116
- static symbol s_5_40[5] = { 'i', 's', 'm', 'o', 's' };
117
- static symbol s_5_41[4] = { 'o', 's', 'o', 's' };
118
- static symbol s_5_42[7] = { 'a', 'm', 'e', 'n', 't', 'o', 's' };
119
- static symbol s_5_43[7] = { 'i', 'm', 'e', 'n', 't', 'o', 's' };
120
- static symbol s_5_44[4] = { 'i', 'v', 'o', 's' };
121
-
122
- static struct among a_5[45] =
123
- {
124
- /* 0 */ { 3, s_5_0, -1, 1, 0},
125
- /* 1 */ { 6, s_5_1, -1, 1, 0},
126
- /* 2 */ { 6, s_5_2, -1, 4, 0},
127
- /* 3 */ { 3, s_5_3, -1, 9, 0},
128
- /* 4 */ { 5, s_5_4, -1, 1, 0},
129
- /* 5 */ { 3, s_5_5, -1, 1, 0},
130
- /* 6 */ { 4, s_5_6, -1, 1, 0},
131
- /* 7 */ { 3, s_5_7, -1, 8, 0},
132
- /* 8 */ { 3, s_5_8, -1, 1, 0},
133
- /* 9 */ { 6, s_5_9, -1, 2, 0},
134
- /* 10 */ { 5, s_5_10, -1, 7, 0},
135
- /* 11 */ { 4, s_5_11, -1, 1, 0},
136
- /* 12 */ { 5, s_5_12, -1, 6, 0},
137
- /* 13 */ { 6, s_5_13, 12, 5, 0},
138
- /* 14 */ { 5, s_5_14, -1, 1, 0},
139
- /* 15 */ { 5, s_5_15, -1, 1, 0},
140
- /* 16 */ { 6, s_5_16, -1, 3, 0},
141
- /* 17 */ { 3, s_5_17, -1, 1, 0},
142
- /* 18 */ { 4, s_5_18, -1, 1, 0},
143
- /* 19 */ { 3, s_5_19, -1, 1, 0},
144
- /* 20 */ { 6, s_5_20, -1, 1, 0},
145
- /* 21 */ { 6, s_5_21, -1, 1, 0},
146
- /* 22 */ { 3, s_5_22, -1, 8, 0},
147
- /* 23 */ { 6, s_5_23, -1, 1, 0},
148
- /* 24 */ { 4, s_5_24, -1, 1, 0},
149
- /* 25 */ { 4, s_5_25, -1, 1, 0},
150
- /* 26 */ { 7, s_5_26, -1, 4, 0},
151
- /* 27 */ { 4, s_5_27, -1, 9, 0},
152
- /* 28 */ { 6, s_5_28, -1, 1, 0},
153
- /* 29 */ { 4, s_5_29, -1, 1, 0},
154
- /* 30 */ { 5, s_5_30, -1, 1, 0},
155
- /* 31 */ { 4, s_5_31, -1, 8, 0},
156
- /* 32 */ { 4, s_5_32, -1, 1, 0},
157
- /* 33 */ { 7, s_5_33, -1, 2, 0},
158
- /* 34 */ { 6, s_5_34, -1, 7, 0},
159
- /* 35 */ { 7, s_5_35, -1, 3, 0},
160
- /* 36 */ { 6, s_5_36, -1, 1, 0},
161
- /* 37 */ { 5, s_5_37, -1, 1, 0},
162
- /* 38 */ { 7, s_5_38, -1, 1, 0},
163
- /* 39 */ { 4, s_5_39, -1, 1, 0},
164
- /* 40 */ { 5, s_5_40, -1, 1, 0},
165
- /* 41 */ { 4, s_5_41, -1, 1, 0},
166
- /* 42 */ { 7, s_5_42, -1, 1, 0},
167
- /* 43 */ { 7, s_5_43, -1, 1, 0},
168
- /* 44 */ { 4, s_5_44, -1, 8, 0}
169
- };
170
-
171
- static symbol s_6_0[3] = { 'a', 'd', 'a' };
172
- static symbol s_6_1[3] = { 'i', 'd', 'a' };
173
- static symbol s_6_2[2] = { 'i', 'a' };
174
- static symbol s_6_3[4] = { 'a', 'r', 'i', 'a' };
175
- static symbol s_6_4[4] = { 'e', 'r', 'i', 'a' };
176
- static symbol s_6_5[4] = { 'i', 'r', 'i', 'a' };
177
- static symbol s_6_6[3] = { 'a', 'r', 'a' };
178
- static symbol s_6_7[3] = { 'e', 'r', 'a' };
179
- static symbol s_6_8[3] = { 'i', 'r', 'a' };
180
- static symbol s_6_9[3] = { 'a', 'v', 'a' };
181
- static symbol s_6_10[4] = { 'a', 's', 's', 'e' };
182
- static symbol s_6_11[4] = { 'e', 's', 's', 'e' };
183
- static symbol s_6_12[4] = { 'i', 's', 's', 'e' };
184
- static symbol s_6_13[4] = { 'a', 's', 't', 'e' };
185
- static symbol s_6_14[4] = { 'e', 's', 't', 'e' };
186
- static symbol s_6_15[4] = { 'i', 's', 't', 'e' };
187
- static symbol s_6_16[2] = { 'e', 'i' };
188
- static symbol s_6_17[4] = { 'a', 'r', 'e', 'i' };
189
- static symbol s_6_18[4] = { 'e', 'r', 'e', 'i' };
190
- static symbol s_6_19[4] = { 'i', 'r', 'e', 'i' };
191
- static symbol s_6_20[2] = { 'a', 'm' };
192
- static symbol s_6_21[3] = { 'i', 'a', 'm' };
193
- static symbol s_6_22[5] = { 'a', 'r', 'i', 'a', 'm' };
194
- static symbol s_6_23[5] = { 'e', 'r', 'i', 'a', 'm' };
195
- static symbol s_6_24[5] = { 'i', 'r', 'i', 'a', 'm' };
196
- static symbol s_6_25[4] = { 'a', 'r', 'a', 'm' };
197
- static symbol s_6_26[4] = { 'e', 'r', 'a', 'm' };
198
- static symbol s_6_27[4] = { 'i', 'r', 'a', 'm' };
199
- static symbol s_6_28[4] = { 'a', 'v', 'a', 'm' };
200
- static symbol s_6_29[2] = { 'e', 'm' };
201
- static symbol s_6_30[4] = { 'a', 'r', 'e', 'm' };
202
- static symbol s_6_31[4] = { 'e', 'r', 'e', 'm' };
203
- static symbol s_6_32[4] = { 'i', 'r', 'e', 'm' };
204
- static symbol s_6_33[5] = { 'a', 's', 's', 'e', 'm' };
205
- static symbol s_6_34[5] = { 'e', 's', 's', 'e', 'm' };
206
- static symbol s_6_35[5] = { 'i', 's', 's', 'e', 'm' };
207
- static symbol s_6_36[3] = { 'a', 'd', 'o' };
208
- static symbol s_6_37[3] = { 'i', 'd', 'o' };
209
- static symbol s_6_38[4] = { 'a', 'n', 'd', 'o' };
210
- static symbol s_6_39[4] = { 'e', 'n', 'd', 'o' };
211
- static symbol s_6_40[4] = { 'i', 'n', 'd', 'o' };
212
- static symbol s_6_41[5] = { 'a', 'r', 'a', '~', 'o' };
213
- static symbol s_6_42[5] = { 'e', 'r', 'a', '~', 'o' };
214
- static symbol s_6_43[5] = { 'i', 'r', 'a', '~', 'o' };
215
- static symbol s_6_44[2] = { 'a', 'r' };
216
- static symbol s_6_45[2] = { 'e', 'r' };
217
- static symbol s_6_46[2] = { 'i', 'r' };
218
- static symbol s_6_47[2] = { 'a', 's' };
219
- static symbol s_6_48[4] = { 'a', 'd', 'a', 's' };
220
- static symbol s_6_49[4] = { 'i', 'd', 'a', 's' };
221
- static symbol s_6_50[3] = { 'i', 'a', 's' };
222
- static symbol s_6_51[5] = { 'a', 'r', 'i', 'a', 's' };
223
- static symbol s_6_52[5] = { 'e', 'r', 'i', 'a', 's' };
224
- static symbol s_6_53[5] = { 'i', 'r', 'i', 'a', 's' };
225
- static symbol s_6_54[4] = { 'a', 'r', 'a', 's' };
226
- static symbol s_6_55[4] = { 'e', 'r', 'a', 's' };
227
- static symbol s_6_56[4] = { 'i', 'r', 'a', 's' };
228
- static symbol s_6_57[4] = { 'a', 'v', 'a', 's' };
229
- static symbol s_6_58[2] = { 'e', 's' };
230
- static symbol s_6_59[5] = { 'a', 'r', 'd', 'e', 's' };
231
- static symbol s_6_60[5] = { 'e', 'r', 'd', 'e', 's' };
232
- static symbol s_6_61[5] = { 'i', 'r', 'd', 'e', 's' };
233
- static symbol s_6_62[4] = { 'a', 'r', 'e', 's' };
234
- static symbol s_6_63[4] = { 'e', 'r', 'e', 's' };
235
- static symbol s_6_64[4] = { 'i', 'r', 'e', 's' };
236
- static symbol s_6_65[5] = { 'a', 's', 's', 'e', 's' };
237
- static symbol s_6_66[5] = { 'e', 's', 's', 'e', 's' };
238
- static symbol s_6_67[5] = { 'i', 's', 's', 'e', 's' };
239
- static symbol s_6_68[5] = { 'a', 's', 't', 'e', 's' };
240
- static symbol s_6_69[5] = { 'e', 's', 't', 'e', 's' };
241
- static symbol s_6_70[5] = { 'i', 's', 't', 'e', 's' };
242
- static symbol s_6_71[2] = { 'i', 's' };
243
- static symbol s_6_72[3] = { 'a', 'i', 's' };
244
- static symbol s_6_73[3] = { 'e', 'i', 's' };
245
- static symbol s_6_74[5] = { 'a', 'r', 'e', 'i', 's' };
246
- static symbol s_6_75[5] = { 'e', 'r', 'e', 'i', 's' };
247
- static symbol s_6_76[5] = { 'i', 'r', 'e', 'i', 's' };
248
- static symbol s_6_77[6] = { 0xC3, 0xA1, 'r', 'e', 'i', 's' };
249
- static symbol s_6_78[6] = { 0xC3, 0xA9, 'r', 'e', 'i', 's' };
250
- static symbol s_6_79[6] = { 0xC3, 0xAD, 'r', 'e', 'i', 's' };
251
- static symbol s_6_80[7] = { 0xC3, 0xA1, 's', 's', 'e', 'i', 's' };
252
- static symbol s_6_81[7] = { 0xC3, 0xA9, 's', 's', 'e', 'i', 's' };
253
- static symbol s_6_82[7] = { 0xC3, 0xAD, 's', 's', 'e', 'i', 's' };
254
- static symbol s_6_83[6] = { 0xC3, 0xA1, 'v', 'e', 'i', 's' };
255
- static symbol s_6_84[5] = { 0xC3, 0xAD, 'e', 'i', 's' };
256
- static symbol s_6_85[7] = { 'a', 'r', 0xC3, 0xAD, 'e', 'i', 's' };
257
- static symbol s_6_86[7] = { 'e', 'r', 0xC3, 0xAD, 'e', 'i', 's' };
258
- static symbol s_6_87[7] = { 'i', 'r', 0xC3, 0xAD, 'e', 'i', 's' };
259
- static symbol s_6_88[4] = { 'a', 'd', 'o', 's' };
260
- static symbol s_6_89[4] = { 'i', 'd', 'o', 's' };
261
- static symbol s_6_90[4] = { 'a', 'm', 'o', 's' };
262
- static symbol s_6_91[7] = { 0xC3, 0xA1, 'r', 'a', 'm', 'o', 's' };
263
- static symbol s_6_92[7] = { 0xC3, 0xA9, 'r', 'a', 'm', 'o', 's' };
264
- static symbol s_6_93[7] = { 0xC3, 0xAD, 'r', 'a', 'm', 'o', 's' };
265
- static symbol s_6_94[7] = { 0xC3, 0xA1, 'v', 'a', 'm', 'o', 's' };
266
- static symbol s_6_95[6] = { 0xC3, 0xAD, 'a', 'm', 'o', 's' };
267
- static symbol s_6_96[8] = { 'a', 'r', 0xC3, 0xAD, 'a', 'm', 'o', 's' };
268
- static symbol s_6_97[8] = { 'e', 'r', 0xC3, 0xAD, 'a', 'm', 'o', 's' };
269
- static symbol s_6_98[8] = { 'i', 'r', 0xC3, 0xAD, 'a', 'm', 'o', 's' };
270
- static symbol s_6_99[4] = { 'e', 'm', 'o', 's' };
271
- static symbol s_6_100[6] = { 'a', 'r', 'e', 'm', 'o', 's' };
272
- static symbol s_6_101[6] = { 'e', 'r', 'e', 'm', 'o', 's' };
273
- static symbol s_6_102[6] = { 'i', 'r', 'e', 'm', 'o', 's' };
274
- static symbol s_6_103[8] = { 0xC3, 0xA1, 's', 's', 'e', 'm', 'o', 's' };
275
- static symbol s_6_104[8] = { 0xC3, 0xAA, 's', 's', 'e', 'm', 'o', 's' };
276
- static symbol s_6_105[8] = { 0xC3, 0xAD, 's', 's', 'e', 'm', 'o', 's' };
277
- static symbol s_6_106[4] = { 'i', 'm', 'o', 's' };
278
- static symbol s_6_107[5] = { 'a', 'r', 'm', 'o', 's' };
279
- static symbol s_6_108[5] = { 'e', 'r', 'm', 'o', 's' };
280
- static symbol s_6_109[5] = { 'i', 'r', 'm', 'o', 's' };
281
- static symbol s_6_110[5] = { 0xC3, 0xA1, 'm', 'o', 's' };
282
- static symbol s_6_111[5] = { 'a', 'r', 0xC3, 0xA1, 's' };
283
- static symbol s_6_112[5] = { 'e', 'r', 0xC3, 0xA1, 's' };
284
- static symbol s_6_113[5] = { 'i', 'r', 0xC3, 0xA1, 's' };
285
- static symbol s_6_114[2] = { 'e', 'u' };
286
- static symbol s_6_115[2] = { 'i', 'u' };
287
- static symbol s_6_116[2] = { 'o', 'u' };
288
- static symbol s_6_117[4] = { 'a', 'r', 0xC3, 0xA1 };
289
- static symbol s_6_118[4] = { 'e', 'r', 0xC3, 0xA1 };
290
- static symbol s_6_119[4] = { 'i', 'r', 0xC3, 0xA1 };
291
-
292
- static struct among a_6[120] =
293
- {
294
- /* 0 */ { 3, s_6_0, -1, 1, 0},
295
- /* 1 */ { 3, s_6_1, -1, 1, 0},
296
- /* 2 */ { 2, s_6_2, -1, 1, 0},
297
- /* 3 */ { 4, s_6_3, 2, 1, 0},
298
- /* 4 */ { 4, s_6_4, 2, 1, 0},
299
- /* 5 */ { 4, s_6_5, 2, 1, 0},
300
- /* 6 */ { 3, s_6_6, -1, 1, 0},
301
- /* 7 */ { 3, s_6_7, -1, 1, 0},
302
- /* 8 */ { 3, s_6_8, -1, 1, 0},
303
- /* 9 */ { 3, s_6_9, -1, 1, 0},
304
- /* 10 */ { 4, s_6_10, -1, 1, 0},
305
- /* 11 */ { 4, s_6_11, -1, 1, 0},
306
- /* 12 */ { 4, s_6_12, -1, 1, 0},
307
- /* 13 */ { 4, s_6_13, -1, 1, 0},
308
- /* 14 */ { 4, s_6_14, -1, 1, 0},
309
- /* 15 */ { 4, s_6_15, -1, 1, 0},
310
- /* 16 */ { 2, s_6_16, -1, 1, 0},
311
- /* 17 */ { 4, s_6_17, 16, 1, 0},
312
- /* 18 */ { 4, s_6_18, 16, 1, 0},
313
- /* 19 */ { 4, s_6_19, 16, 1, 0},
314
- /* 20 */ { 2, s_6_20, -1, 1, 0},
315
- /* 21 */ { 3, s_6_21, 20, 1, 0},
316
- /* 22 */ { 5, s_6_22, 21, 1, 0},
317
- /* 23 */ { 5, s_6_23, 21, 1, 0},
318
- /* 24 */ { 5, s_6_24, 21, 1, 0},
319
- /* 25 */ { 4, s_6_25, 20, 1, 0},
320
- /* 26 */ { 4, s_6_26, 20, 1, 0},
321
- /* 27 */ { 4, s_6_27, 20, 1, 0},
322
- /* 28 */ { 4, s_6_28, 20, 1, 0},
323
- /* 29 */ { 2, s_6_29, -1, 1, 0},
324
- /* 30 */ { 4, s_6_30, 29, 1, 0},
325
- /* 31 */ { 4, s_6_31, 29, 1, 0},
326
- /* 32 */ { 4, s_6_32, 29, 1, 0},
327
- /* 33 */ { 5, s_6_33, 29, 1, 0},
328
- /* 34 */ { 5, s_6_34, 29, 1, 0},
329
- /* 35 */ { 5, s_6_35, 29, 1, 0},
330
- /* 36 */ { 3, s_6_36, -1, 1, 0},
331
- /* 37 */ { 3, s_6_37, -1, 1, 0},
332
- /* 38 */ { 4, s_6_38, -1, 1, 0},
333
- /* 39 */ { 4, s_6_39, -1, 1, 0},
334
- /* 40 */ { 4, s_6_40, -1, 1, 0},
335
- /* 41 */ { 5, s_6_41, -1, 1, 0},
336
- /* 42 */ { 5, s_6_42, -1, 1, 0},
337
- /* 43 */ { 5, s_6_43, -1, 1, 0},
338
- /* 44 */ { 2, s_6_44, -1, 1, 0},
339
- /* 45 */ { 2, s_6_45, -1, 1, 0},
340
- /* 46 */ { 2, s_6_46, -1, 1, 0},
341
- /* 47 */ { 2, s_6_47, -1, 1, 0},
342
- /* 48 */ { 4, s_6_48, 47, 1, 0},
343
- /* 49 */ { 4, s_6_49, 47, 1, 0},
344
- /* 50 */ { 3, s_6_50, 47, 1, 0},
345
- /* 51 */ { 5, s_6_51, 50, 1, 0},
346
- /* 52 */ { 5, s_6_52, 50, 1, 0},
347
- /* 53 */ { 5, s_6_53, 50, 1, 0},
348
- /* 54 */ { 4, s_6_54, 47, 1, 0},
349
- /* 55 */ { 4, s_6_55, 47, 1, 0},
350
- /* 56 */ { 4, s_6_56, 47, 1, 0},
351
- /* 57 */ { 4, s_6_57, 47, 1, 0},
352
- /* 58 */ { 2, s_6_58, -1, 1, 0},
353
- /* 59 */ { 5, s_6_59, 58, 1, 0},
354
- /* 60 */ { 5, s_6_60, 58, 1, 0},
355
- /* 61 */ { 5, s_6_61, 58, 1, 0},
356
- /* 62 */ { 4, s_6_62, 58, 1, 0},
357
- /* 63 */ { 4, s_6_63, 58, 1, 0},
358
- /* 64 */ { 4, s_6_64, 58, 1, 0},
359
- /* 65 */ { 5, s_6_65, 58, 1, 0},
360
- /* 66 */ { 5, s_6_66, 58, 1, 0},
361
- /* 67 */ { 5, s_6_67, 58, 1, 0},
362
- /* 68 */ { 5, s_6_68, 58, 1, 0},
363
- /* 69 */ { 5, s_6_69, 58, 1, 0},
364
- /* 70 */ { 5, s_6_70, 58, 1, 0},
365
- /* 71 */ { 2, s_6_71, -1, 1, 0},
366
- /* 72 */ { 3, s_6_72, 71, 1, 0},
367
- /* 73 */ { 3, s_6_73, 71, 1, 0},
368
- /* 74 */ { 5, s_6_74, 73, 1, 0},
369
- /* 75 */ { 5, s_6_75, 73, 1, 0},
370
- /* 76 */ { 5, s_6_76, 73, 1, 0},
371
- /* 77 */ { 6, s_6_77, 73, 1, 0},
372
- /* 78 */ { 6, s_6_78, 73, 1, 0},
373
- /* 79 */ { 6, s_6_79, 73, 1, 0},
374
- /* 80 */ { 7, s_6_80, 73, 1, 0},
375
- /* 81 */ { 7, s_6_81, 73, 1, 0},
376
- /* 82 */ { 7, s_6_82, 73, 1, 0},
377
- /* 83 */ { 6, s_6_83, 73, 1, 0},
378
- /* 84 */ { 5, s_6_84, 73, 1, 0},
379
- /* 85 */ { 7, s_6_85, 84, 1, 0},
380
- /* 86 */ { 7, s_6_86, 84, 1, 0},
381
- /* 87 */ { 7, s_6_87, 84, 1, 0},
382
- /* 88 */ { 4, s_6_88, -1, 1, 0},
383
- /* 89 */ { 4, s_6_89, -1, 1, 0},
384
- /* 90 */ { 4, s_6_90, -1, 1, 0},
385
- /* 91 */ { 7, s_6_91, 90, 1, 0},
386
- /* 92 */ { 7, s_6_92, 90, 1, 0},
387
- /* 93 */ { 7, s_6_93, 90, 1, 0},
388
- /* 94 */ { 7, s_6_94, 90, 1, 0},
389
- /* 95 */ { 6, s_6_95, 90, 1, 0},
390
- /* 96 */ { 8, s_6_96, 95, 1, 0},
391
- /* 97 */ { 8, s_6_97, 95, 1, 0},
392
- /* 98 */ { 8, s_6_98, 95, 1, 0},
393
- /* 99 */ { 4, s_6_99, -1, 1, 0},
394
- /*100 */ { 6, s_6_100, 99, 1, 0},
395
- /*101 */ { 6, s_6_101, 99, 1, 0},
396
- /*102 */ { 6, s_6_102, 99, 1, 0},
397
- /*103 */ { 8, s_6_103, 99, 1, 0},
398
- /*104 */ { 8, s_6_104, 99, 1, 0},
399
- /*105 */ { 8, s_6_105, 99, 1, 0},
400
- /*106 */ { 4, s_6_106, -1, 1, 0},
401
- /*107 */ { 5, s_6_107, -1, 1, 0},
402
- /*108 */ { 5, s_6_108, -1, 1, 0},
403
- /*109 */ { 5, s_6_109, -1, 1, 0},
404
- /*110 */ { 5, s_6_110, -1, 1, 0},
405
- /*111 */ { 5, s_6_111, -1, 1, 0},
406
- /*112 */ { 5, s_6_112, -1, 1, 0},
407
- /*113 */ { 5, s_6_113, -1, 1, 0},
408
- /*114 */ { 2, s_6_114, -1, 1, 0},
409
- /*115 */ { 2, s_6_115, -1, 1, 0},
410
- /*116 */ { 2, s_6_116, -1, 1, 0},
411
- /*117 */ { 4, s_6_117, -1, 1, 0},
412
- /*118 */ { 4, s_6_118, -1, 1, 0},
413
- /*119 */ { 4, s_6_119, -1, 1, 0}
414
- };
415
-
416
- static symbol s_7_0[1] = { 'a' };
417
- static symbol s_7_1[1] = { 'i' };
418
- static symbol s_7_2[1] = { 'o' };
419
- static symbol s_7_3[2] = { 'o', 's' };
420
- static symbol s_7_4[2] = { 0xC3, 0xA1 };
421
- static symbol s_7_5[2] = { 0xC3, 0xAD };
422
- static symbol s_7_6[2] = { 0xC3, 0xB3 };
423
-
424
- static struct among a_7[7] =
425
- {
426
- /* 0 */ { 1, s_7_0, -1, 1, 0},
427
- /* 1 */ { 1, s_7_1, -1, 1, 0},
428
- /* 2 */ { 1, s_7_2, -1, 1, 0},
429
- /* 3 */ { 2, s_7_3, -1, 1, 0},
430
- /* 4 */ { 2, s_7_4, -1, 1, 0},
431
- /* 5 */ { 2, s_7_5, -1, 1, 0},
432
- /* 6 */ { 2, s_7_6, -1, 1, 0}
433
- };
434
-
435
- static symbol s_8_0[1] = { 'e' };
436
- static symbol s_8_1[2] = { 0xC3, 0xA7 };
437
- static symbol s_8_2[2] = { 0xC3, 0xA9 };
438
- static symbol s_8_3[2] = { 0xC3, 0xAA };
439
-
440
- static struct among a_8[4] =
441
- {
442
- /* 0 */ { 1, s_8_0, -1, 1, 0},
443
- /* 1 */ { 2, s_8_1, -1, 2, 0},
444
- /* 2 */ { 2, s_8_2, -1, 1, 0},
445
- /* 3 */ { 2, s_8_3, -1, 1, 0}
446
- };
447
-
448
- static unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 19, 12, 2 };
449
-
450
- static symbol s_0[] = { 'a', '~' };
451
- static symbol s_1[] = { 'o', '~' };
452
- static symbol s_2[] = { 0xC3, 0xA3 };
453
- static symbol s_3[] = { 0xC3, 0xB5 };
454
- static symbol s_4[] = { 'l', 'o', 'g' };
455
- static symbol s_5[] = { 'u' };
456
- static symbol s_6[] = { 'e', 'n', 't', 'e' };
457
- static symbol s_7[] = { 'a', 't' };
458
- static symbol s_8[] = { 'a', 't' };
459
- static symbol s_9[] = { 'e' };
460
- static symbol s_10[] = { 'i', 'r' };
461
- static symbol s_11[] = { 'u' };
462
- static symbol s_12[] = { 'g' };
463
- static symbol s_13[] = { 'i' };
464
- static symbol s_14[] = { 'c' };
465
- static symbol s_15[] = { 'c' };
466
- static symbol s_16[] = { 'i' };
467
- static symbol s_17[] = { 'c' };
468
-
469
- static int r_prelude(struct SN_env * z) {
470
- int among_var;
471
- while(1) { /* repeat, line 36 */
472
- int c = z->c;
473
- z->bra = z->c; /* [, line 37 */
474
- among_var = find_among(z, a_0, 3); /* substring, line 37 */
475
- if (!(among_var)) goto lab0;
476
- z->ket = z->c; /* ], line 37 */
477
- switch(among_var) {
478
- case 0: goto lab0;
479
- case 1:
480
- { int ret;
481
- ret = slice_from_s(z, 2, s_0); /* <-, line 38 */
482
- if (ret < 0) return ret;
483
- }
484
- break;
485
- case 2:
486
- { int ret;
487
- ret = slice_from_s(z, 2, s_1); /* <-, line 39 */
488
- if (ret < 0) return ret;
489
- }
490
- break;
491
- case 3:
492
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
493
- if (c < 0) goto lab0;
494
- z->c = c; /* next, line 40 */
495
- }
496
- break;
497
- }
498
- continue;
499
- lab0:
500
- z->c = c;
501
- break;
502
- }
503
- return 1;
504
- }
505
-
506
- static int r_mark_regions(struct SN_env * z) {
507
- z->I[0] = z->l;
508
- z->I[1] = z->l;
509
- z->I[2] = z->l;
510
- { int c = z->c; /* do, line 50 */
511
- { int c = z->c; /* or, line 52 */
512
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab2;
513
- { int c = z->c; /* or, line 51 */
514
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab4;
515
- while(1) { /* gopast, line 51 */
516
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab5;
517
- break;
518
- lab5:
519
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
520
- if (c < 0) goto lab4;
521
- z->c = c; /* gopast, line 51 */
522
- }
523
- }
524
- goto lab3;
525
- lab4:
526
- z->c = c;
527
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab2;
528
- while(1) { /* gopast, line 51 */
529
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab6;
530
- break;
531
- lab6:
532
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
533
- if (c < 0) goto lab2;
534
- z->c = c; /* gopast, line 51 */
535
- }
536
- }
537
- }
538
- lab3:
539
- goto lab1;
540
- lab2:
541
- z->c = c;
542
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab0;
543
- { int c = z->c; /* or, line 53 */
544
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab8;
545
- while(1) { /* gopast, line 53 */
546
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab9;
547
- break;
548
- lab9:
549
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
550
- if (c < 0) goto lab8;
551
- z->c = c; /* gopast, line 53 */
552
- }
553
- }
554
- goto lab7;
555
- lab8:
556
- z->c = c;
557
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab0;
558
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
559
- if (c < 0) goto lab0;
560
- z->c = c; /* next, line 53 */
561
- }
562
- }
563
- lab7:
564
- ;
565
- }
566
- lab1:
567
- z->I[0] = z->c; /* setmark pV, line 54 */
568
- lab0:
569
- z->c = c;
570
- }
571
- { int c = z->c; /* do, line 56 */
572
- while(1) { /* gopast, line 57 */
573
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab11;
574
- break;
575
- lab11:
576
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
577
- if (c < 0) goto lab10;
578
- z->c = c; /* gopast, line 57 */
579
- }
580
- }
581
- while(1) { /* gopast, line 57 */
582
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab12;
583
- break;
584
- lab12:
585
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
586
- if (c < 0) goto lab10;
587
- z->c = c; /* gopast, line 57 */
588
- }
589
- }
590
- z->I[1] = z->c; /* setmark p1, line 57 */
591
- while(1) { /* gopast, line 58 */
592
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab13;
593
- break;
594
- lab13:
595
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
596
- if (c < 0) goto lab10;
597
- z->c = c; /* gopast, line 58 */
598
- }
599
- }
600
- while(1) { /* gopast, line 58 */
601
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab14;
602
- break;
603
- lab14:
604
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
605
- if (c < 0) goto lab10;
606
- z->c = c; /* gopast, line 58 */
607
- }
608
- }
609
- z->I[2] = z->c; /* setmark p2, line 58 */
610
- lab10:
611
- z->c = c;
612
- }
613
- return 1;
614
- }
615
-
616
- static int r_postlude(struct SN_env * z) {
617
- int among_var;
618
- while(1) { /* repeat, line 62 */
619
- int c = z->c;
620
- z->bra = z->c; /* [, line 63 */
621
- among_var = find_among(z, a_1, 3); /* substring, line 63 */
622
- if (!(among_var)) goto lab0;
623
- z->ket = z->c; /* ], line 63 */
624
- switch(among_var) {
625
- case 0: goto lab0;
626
- case 1:
627
- { int ret;
628
- ret = slice_from_s(z, 2, s_2); /* <-, line 64 */
629
- if (ret < 0) return ret;
630
- }
631
- break;
632
- case 2:
633
- { int ret;
634
- ret = slice_from_s(z, 2, s_3); /* <-, line 65 */
635
- if (ret < 0) return ret;
636
- }
637
- break;
638
- case 3:
639
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
640
- if (c < 0) goto lab0;
641
- z->c = c; /* next, line 66 */
642
- }
643
- break;
644
- }
645
- continue;
646
- lab0:
647
- z->c = c;
648
- break;
649
- }
650
- return 1;
651
- }
652
-
653
- static int r_RV(struct SN_env * z) {
654
- if (!(z->I[0] <= z->c)) return 0;
655
- return 1;
656
- }
657
-
658
- static int r_R1(struct SN_env * z) {
659
- if (!(z->I[1] <= z->c)) return 0;
660
- return 1;
661
- }
662
-
663
- static int r_R2(struct SN_env * z) {
664
- if (!(z->I[2] <= z->c)) return 0;
665
- return 1;
666
- }
667
-
668
- static int r_standard_suffix(struct SN_env * z) {
669
- int among_var;
670
- z->ket = z->c; /* [, line 77 */
671
- among_var = find_among_b(z, a_5, 45); /* substring, line 77 */
672
- if (!(among_var)) return 0;
673
- z->bra = z->c; /* ], line 77 */
674
- switch(among_var) {
675
- case 0: return 0;
676
- case 1:
677
- { int ret = r_R2(z);
678
- if (ret == 0) return 0; /* call R2, line 93 */
679
- if (ret < 0) return ret;
680
- }
681
- { int ret;
682
- ret = slice_del(z); /* delete, line 93 */
683
- if (ret < 0) return ret;
684
- }
685
- break;
686
- case 2:
687
- { int ret = r_R2(z);
688
- if (ret == 0) return 0; /* call R2, line 98 */
689
- if (ret < 0) return ret;
690
- }
691
- { int ret;
692
- ret = slice_from_s(z, 3, s_4); /* <-, line 98 */
693
- if (ret < 0) return ret;
694
- }
695
- break;
696
- case 3:
697
- { int ret = r_R2(z);
698
- if (ret == 0) return 0; /* call R2, line 102 */
699
- if (ret < 0) return ret;
700
- }
701
- { int ret;
702
- ret = slice_from_s(z, 1, s_5); /* <-, line 102 */
703
- if (ret < 0) return ret;
704
- }
705
- break;
706
- case 4:
707
- { int ret = r_R2(z);
708
- if (ret == 0) return 0; /* call R2, line 106 */
709
- if (ret < 0) return ret;
710
- }
711
- { int ret;
712
- ret = slice_from_s(z, 4, s_6); /* <-, line 106 */
713
- if (ret < 0) return ret;
714
- }
715
- break;
716
- case 5:
717
- { int ret = r_R1(z);
718
- if (ret == 0) return 0; /* call R1, line 110 */
719
- if (ret < 0) return ret;
720
- }
721
- { int ret;
722
- ret = slice_del(z); /* delete, line 110 */
723
- if (ret < 0) return ret;
724
- }
725
- { int m = z->l - z->c; (void) m; /* try, line 111 */
726
- z->ket = z->c; /* [, line 112 */
727
- among_var = find_among_b(z, a_2, 4); /* substring, line 112 */
728
- if (!(among_var)) { z->c = z->l - m; goto lab0; }
729
- z->bra = z->c; /* ], line 112 */
730
- { int ret = r_R2(z);
731
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 112 */
732
- if (ret < 0) return ret;
733
- }
734
- { int ret;
735
- ret = slice_del(z); /* delete, line 112 */
736
- if (ret < 0) return ret;
737
- }
738
- switch(among_var) {
739
- case 0: { z->c = z->l - m; goto lab0; }
740
- case 1:
741
- z->ket = z->c; /* [, line 113 */
742
- if (!(eq_s_b(z, 2, s_7))) { z->c = z->l - m; goto lab0; }
743
- z->bra = z->c; /* ], line 113 */
744
- { int ret = r_R2(z);
745
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 113 */
746
- if (ret < 0) return ret;
747
- }
748
- { int ret;
749
- ret = slice_del(z); /* delete, line 113 */
750
- if (ret < 0) return ret;
751
- }
752
- break;
753
- }
754
- lab0:
755
- ;
756
- }
757
- break;
758
- case 6:
759
- { int ret = r_R2(z);
760
- if (ret == 0) return 0; /* call R2, line 122 */
761
- if (ret < 0) return ret;
762
- }
763
- { int ret;
764
- ret = slice_del(z); /* delete, line 122 */
765
- if (ret < 0) return ret;
766
- }
767
- { int m = z->l - z->c; (void) m; /* try, line 123 */
768
- z->ket = z->c; /* [, line 124 */
769
- among_var = find_among_b(z, a_3, 3); /* substring, line 124 */
770
- if (!(among_var)) { z->c = z->l - m; goto lab1; }
771
- z->bra = z->c; /* ], line 124 */
772
- switch(among_var) {
773
- case 0: { z->c = z->l - m; goto lab1; }
774
- case 1:
775
- { int ret = r_R2(z);
776
- if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 127 */
777
- if (ret < 0) return ret;
778
- }
779
- { int ret;
780
- ret = slice_del(z); /* delete, line 127 */
781
- if (ret < 0) return ret;
782
- }
783
- break;
784
- }
785
- lab1:
786
- ;
787
- }
788
- break;
789
- case 7:
790
- { int ret = r_R2(z);
791
- if (ret == 0) return 0; /* call R2, line 134 */
792
- if (ret < 0) return ret;
793
- }
794
- { int ret;
795
- ret = slice_del(z); /* delete, line 134 */
796
- if (ret < 0) return ret;
797
- }
798
- { int m = z->l - z->c; (void) m; /* try, line 135 */
799
- z->ket = z->c; /* [, line 136 */
800
- among_var = find_among_b(z, a_4, 3); /* substring, line 136 */
801
- if (!(among_var)) { z->c = z->l - m; goto lab2; }
802
- z->bra = z->c; /* ], line 136 */
803
- switch(among_var) {
804
- case 0: { z->c = z->l - m; goto lab2; }
805
- case 1:
806
- { int ret = r_R2(z);
807
- if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 139 */
808
- if (ret < 0) return ret;
809
- }
810
- { int ret;
811
- ret = slice_del(z); /* delete, line 139 */
812
- if (ret < 0) return ret;
813
- }
814
- break;
815
- }
816
- lab2:
817
- ;
818
- }
819
- break;
820
- case 8:
821
- { int ret = r_R2(z);
822
- if (ret == 0) return 0; /* call R2, line 146 */
823
- if (ret < 0) return ret;
824
- }
825
- { int ret;
826
- ret = slice_del(z); /* delete, line 146 */
827
- if (ret < 0) return ret;
828
- }
829
- { int m = z->l - z->c; (void) m; /* try, line 147 */
830
- z->ket = z->c; /* [, line 148 */
831
- if (!(eq_s_b(z, 2, s_8))) { z->c = z->l - m; goto lab3; }
832
- z->bra = z->c; /* ], line 148 */
833
- { int ret = r_R2(z);
834
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 148 */
835
- if (ret < 0) return ret;
836
- }
837
- { int ret;
838
- ret = slice_del(z); /* delete, line 148 */
839
- if (ret < 0) return ret;
840
- }
841
- lab3:
842
- ;
843
- }
844
- break;
845
- case 9:
846
- { int ret = r_RV(z);
847
- if (ret == 0) return 0; /* call RV, line 153 */
848
- if (ret < 0) return ret;
849
- }
850
- if (!(eq_s_b(z, 1, s_9))) return 0;
851
- { int ret;
852
- ret = slice_from_s(z, 2, s_10); /* <-, line 154 */
853
- if (ret < 0) return ret;
854
- }
855
- break;
856
- }
857
- return 1;
858
- }
859
-
860
- static int r_verb_suffix(struct SN_env * z) {
861
- int among_var;
862
- { int m3; /* setlimit, line 159 */
863
- int m = z->l - z->c; (void) m;
864
- if (z->c < z->I[0]) return 0;
865
- z->c = z->I[0]; /* tomark, line 159 */
866
- m3 = z->lb; z->lb = z->c;
867
- z->c = z->l - m;
868
- z->ket = z->c; /* [, line 160 */
869
- among_var = find_among_b(z, a_6, 120); /* substring, line 160 */
870
- if (!(among_var)) { z->lb = m3; return 0; }
871
- z->bra = z->c; /* ], line 160 */
872
- switch(among_var) {
873
- case 0: { z->lb = m3; return 0; }
874
- case 1:
875
- { int ret;
876
- ret = slice_del(z); /* delete, line 179 */
877
- if (ret < 0) return ret;
878
- }
879
- break;
880
- }
881
- z->lb = m3;
882
- }
883
- return 1;
884
- }
885
-
886
- static int r_residual_suffix(struct SN_env * z) {
887
- int among_var;
888
- z->ket = z->c; /* [, line 184 */
889
- among_var = find_among_b(z, a_7, 7); /* substring, line 184 */
890
- if (!(among_var)) return 0;
891
- z->bra = z->c; /* ], line 184 */
892
- switch(among_var) {
893
- case 0: return 0;
894
- case 1:
895
- { int ret = r_RV(z);
896
- if (ret == 0) return 0; /* call RV, line 187 */
897
- if (ret < 0) return ret;
898
- }
899
- { int ret;
900
- ret = slice_del(z); /* delete, line 187 */
901
- if (ret < 0) return ret;
902
- }
903
- break;
904
- }
905
- return 1;
906
- }
907
-
908
- static int r_residual_form(struct SN_env * z) {
909
- int among_var;
910
- z->ket = z->c; /* [, line 192 */
911
- among_var = find_among_b(z, a_8, 4); /* substring, line 192 */
912
- if (!(among_var)) return 0;
913
- z->bra = z->c; /* ], line 192 */
914
- switch(among_var) {
915
- case 0: return 0;
916
- case 1:
917
- { int ret = r_RV(z);
918
- if (ret == 0) return 0; /* call RV, line 194 */
919
- if (ret < 0) return ret;
920
- }
921
- { int ret;
922
- ret = slice_del(z); /* delete, line 194 */
923
- if (ret < 0) return ret;
924
- }
925
- z->ket = z->c; /* [, line 194 */
926
- { int m = z->l - z->c; (void) m; /* or, line 194 */
927
- if (!(eq_s_b(z, 1, s_11))) goto lab1;
928
- z->bra = z->c; /* ], line 194 */
929
- { int m_test = z->l - z->c; /* test, line 194 */
930
- if (!(eq_s_b(z, 1, s_12))) goto lab1;
931
- z->c = z->l - m_test;
932
- }
933
- goto lab0;
934
- lab1:
935
- z->c = z->l - m;
936
- if (!(eq_s_b(z, 1, s_13))) return 0;
937
- z->bra = z->c; /* ], line 195 */
938
- { int m_test = z->l - z->c; /* test, line 195 */
939
- if (!(eq_s_b(z, 1, s_14))) return 0;
940
- z->c = z->l - m_test;
941
- }
942
- }
943
- lab0:
944
- { int ret = r_RV(z);
945
- if (ret == 0) return 0; /* call RV, line 195 */
946
- if (ret < 0) return ret;
947
- }
948
- { int ret;
949
- ret = slice_del(z); /* delete, line 195 */
950
- if (ret < 0) return ret;
951
- }
952
- break;
953
- case 2:
954
- { int ret;
955
- ret = slice_from_s(z, 1, s_15); /* <-, line 196 */
956
- if (ret < 0) return ret;
957
- }
958
- break;
959
- }
960
- return 1;
961
- }
962
-
963
- extern int portuguese_UTF_8_stem(struct SN_env * z) {
964
- { int c = z->c; /* do, line 202 */
965
- { int ret = r_prelude(z);
966
- if (ret == 0) goto lab0; /* call prelude, line 202 */
967
- if (ret < 0) return ret;
968
- }
969
- lab0:
970
- z->c = c;
971
- }
972
- { int c = z->c; /* do, line 203 */
973
- { int ret = r_mark_regions(z);
974
- if (ret == 0) goto lab1; /* call mark_regions, line 203 */
975
- if (ret < 0) return ret;
976
- }
977
- lab1:
978
- z->c = c;
979
- }
980
- z->lb = z->c; z->c = z->l; /* backwards, line 204 */
981
-
982
- { int m = z->l - z->c; (void) m; /* do, line 205 */
983
- { int m = z->l - z->c; (void) m; /* or, line 209 */
984
- { int m = z->l - z->c; (void) m; /* and, line 207 */
985
- { int m = z->l - z->c; (void) m; /* or, line 206 */
986
- { int ret = r_standard_suffix(z);
987
- if (ret == 0) goto lab6; /* call standard_suffix, line 206 */
988
- if (ret < 0) return ret;
989
- }
990
- goto lab5;
991
- lab6:
992
- z->c = z->l - m;
993
- { int ret = r_verb_suffix(z);
994
- if (ret == 0) goto lab4; /* call verb_suffix, line 206 */
995
- if (ret < 0) return ret;
996
- }
997
- }
998
- lab5:
999
- z->c = z->l - m;
1000
- { int m = z->l - z->c; (void) m; /* do, line 207 */
1001
- z->ket = z->c; /* [, line 207 */
1002
- if (!(eq_s_b(z, 1, s_16))) goto lab7;
1003
- z->bra = z->c; /* ], line 207 */
1004
- { int m_test = z->l - z->c; /* test, line 207 */
1005
- if (!(eq_s_b(z, 1, s_17))) goto lab7;
1006
- z->c = z->l - m_test;
1007
- }
1008
- { int ret = r_RV(z);
1009
- if (ret == 0) goto lab7; /* call RV, line 207 */
1010
- if (ret < 0) return ret;
1011
- }
1012
- { int ret;
1013
- ret = slice_del(z); /* delete, line 207 */
1014
- if (ret < 0) return ret;
1015
- }
1016
- lab7:
1017
- z->c = z->l - m;
1018
- }
1019
- }
1020
- goto lab3;
1021
- lab4:
1022
- z->c = z->l - m;
1023
- { int ret = r_residual_suffix(z);
1024
- if (ret == 0) goto lab2; /* call residual_suffix, line 209 */
1025
- if (ret < 0) return ret;
1026
- }
1027
- }
1028
- lab3:
1029
- lab2:
1030
- z->c = z->l - m;
1031
- }
1032
- { int m = z->l - z->c; (void) m; /* do, line 211 */
1033
- { int ret = r_residual_form(z);
1034
- if (ret == 0) goto lab8; /* call residual_form, line 211 */
1035
- if (ret < 0) return ret;
1036
- }
1037
- lab8:
1038
- z->c = z->l - m;
1039
- }
1040
- z->c = z->lb;
1041
- { int c = z->c; /* do, line 213 */
1042
- { int ret = r_postlude(z);
1043
- if (ret == 0) goto lab9; /* call postlude, line 213 */
1044
- if (ret < 0) return ret;
1045
- }
1046
- lab9:
1047
- z->c = c;
1048
- }
1049
- return 1;
1050
- }
1051
-
1052
- extern struct SN_env * portuguese_UTF_8_create_env(void) { return SN_create_env(0, 3, 0); }
1053
-
1054
- extern void portuguese_UTF_8_close_env(struct SN_env * z) { SN_close_env(z); }
1055
-