sdsykes-ferret 0.11.6.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. data/CHANGELOG +24 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README +102 -0
  4. data/Rakefile +338 -0
  5. data/TODO +17 -0
  6. data/TUTORIAL +231 -0
  7. data/bin/ferret-browser +79 -0
  8. data/ext/analysis.c +1555 -0
  9. data/ext/analysis.h +219 -0
  10. data/ext/api.c +69 -0
  11. data/ext/api.h +27 -0
  12. data/ext/array.c +123 -0
  13. data/ext/array.h +53 -0
  14. data/ext/bitvector.c +540 -0
  15. data/ext/bitvector.h +272 -0
  16. data/ext/compound_io.c +383 -0
  17. data/ext/config.h +42 -0
  18. data/ext/document.c +156 -0
  19. data/ext/document.h +53 -0
  20. data/ext/except.c +120 -0
  21. data/ext/except.h +168 -0
  22. data/ext/extconf.rb +14 -0
  23. data/ext/ferret.c +402 -0
  24. data/ext/ferret.h +91 -0
  25. data/ext/filter.c +156 -0
  26. data/ext/fs_store.c +483 -0
  27. data/ext/global.c +418 -0
  28. data/ext/global.h +117 -0
  29. data/ext/hash.c +567 -0
  30. data/ext/hash.h +473 -0
  31. data/ext/hashset.c +170 -0
  32. data/ext/hashset.h +187 -0
  33. data/ext/header.h +58 -0
  34. data/ext/helper.c +62 -0
  35. data/ext/helper.h +13 -0
  36. data/ext/inc/lang.h +48 -0
  37. data/ext/inc/threading.h +31 -0
  38. data/ext/index.c +6425 -0
  39. data/ext/index.h +961 -0
  40. data/ext/lang.h +66 -0
  41. data/ext/libstemmer.c +92 -0
  42. data/ext/libstemmer.h +79 -0
  43. data/ext/mempool.c +87 -0
  44. data/ext/mempool.h +35 -0
  45. data/ext/modules.h +162 -0
  46. data/ext/multimapper.c +310 -0
  47. data/ext/multimapper.h +51 -0
  48. data/ext/posh.c +1006 -0
  49. data/ext/posh.h +1007 -0
  50. data/ext/priorityqueue.c +151 -0
  51. data/ext/priorityqueue.h +143 -0
  52. data/ext/q_boolean.c +1608 -0
  53. data/ext/q_const_score.c +161 -0
  54. data/ext/q_filtered_query.c +209 -0
  55. data/ext/q_fuzzy.c +268 -0
  56. data/ext/q_match_all.c +148 -0
  57. data/ext/q_multi_term.c +677 -0
  58. data/ext/q_parser.c +2825 -0
  59. data/ext/q_phrase.c +1126 -0
  60. data/ext/q_prefix.c +100 -0
  61. data/ext/q_range.c +350 -0
  62. data/ext/q_span.c +2402 -0
  63. data/ext/q_term.c +337 -0
  64. data/ext/q_wildcard.c +171 -0
  65. data/ext/r_analysis.c +2575 -0
  66. data/ext/r_index.c +3472 -0
  67. data/ext/r_qparser.c +585 -0
  68. data/ext/r_search.c +4105 -0
  69. data/ext/r_store.c +513 -0
  70. data/ext/r_utils.c +963 -0
  71. data/ext/ram_store.c +471 -0
  72. data/ext/search.c +1741 -0
  73. data/ext/search.h +885 -0
  74. data/ext/similarity.c +150 -0
  75. data/ext/similarity.h +82 -0
  76. data/ext/sort.c +983 -0
  77. data/ext/stem_ISO_8859_1_danish.c +338 -0
  78. data/ext/stem_ISO_8859_1_danish.h +16 -0
  79. data/ext/stem_ISO_8859_1_dutch.c +635 -0
  80. data/ext/stem_ISO_8859_1_dutch.h +16 -0
  81. data/ext/stem_ISO_8859_1_english.c +1156 -0
  82. data/ext/stem_ISO_8859_1_english.h +16 -0
  83. data/ext/stem_ISO_8859_1_finnish.c +792 -0
  84. data/ext/stem_ISO_8859_1_finnish.h +16 -0
  85. data/ext/stem_ISO_8859_1_french.c +1276 -0
  86. data/ext/stem_ISO_8859_1_french.h +16 -0
  87. data/ext/stem_ISO_8859_1_german.c +512 -0
  88. data/ext/stem_ISO_8859_1_german.h +16 -0
  89. data/ext/stem_ISO_8859_1_italian.c +1091 -0
  90. data/ext/stem_ISO_8859_1_italian.h +16 -0
  91. data/ext/stem_ISO_8859_1_norwegian.c +296 -0
  92. data/ext/stem_ISO_8859_1_norwegian.h +16 -0
  93. data/ext/stem_ISO_8859_1_porter.c +776 -0
  94. data/ext/stem_ISO_8859_1_porter.h +16 -0
  95. data/ext/stem_ISO_8859_1_portuguese.c +1035 -0
  96. data/ext/stem_ISO_8859_1_portuguese.h +16 -0
  97. data/ext/stem_ISO_8859_1_spanish.c +1119 -0
  98. data/ext/stem_ISO_8859_1_spanish.h +16 -0
  99. data/ext/stem_ISO_8859_1_swedish.c +307 -0
  100. data/ext/stem_ISO_8859_1_swedish.h +16 -0
  101. data/ext/stem_KOI8_R_russian.c +701 -0
  102. data/ext/stem_KOI8_R_russian.h +16 -0
  103. data/ext/stem_UTF_8_danish.c +344 -0
  104. data/ext/stem_UTF_8_danish.h +16 -0
  105. data/ext/stem_UTF_8_dutch.c +653 -0
  106. data/ext/stem_UTF_8_dutch.h +16 -0
  107. data/ext/stem_UTF_8_english.c +1176 -0
  108. data/ext/stem_UTF_8_english.h +16 -0
  109. data/ext/stem_UTF_8_finnish.c +808 -0
  110. data/ext/stem_UTF_8_finnish.h +16 -0
  111. data/ext/stem_UTF_8_french.c +1296 -0
  112. data/ext/stem_UTF_8_french.h +16 -0
  113. data/ext/stem_UTF_8_german.c +526 -0
  114. data/ext/stem_UTF_8_german.h +16 -0
  115. data/ext/stem_UTF_8_italian.c +1113 -0
  116. data/ext/stem_UTF_8_italian.h +16 -0
  117. data/ext/stem_UTF_8_norwegian.c +302 -0
  118. data/ext/stem_UTF_8_norwegian.h +16 -0
  119. data/ext/stem_UTF_8_porter.c +794 -0
  120. data/ext/stem_UTF_8_porter.h +16 -0
  121. data/ext/stem_UTF_8_portuguese.c +1055 -0
  122. data/ext/stem_UTF_8_portuguese.h +16 -0
  123. data/ext/stem_UTF_8_russian.c +709 -0
  124. data/ext/stem_UTF_8_russian.h +16 -0
  125. data/ext/stem_UTF_8_spanish.c +1137 -0
  126. data/ext/stem_UTF_8_spanish.h +16 -0
  127. data/ext/stem_UTF_8_swedish.c +313 -0
  128. data/ext/stem_UTF_8_swedish.h +16 -0
  129. data/ext/stopwords.c +401 -0
  130. data/ext/store.c +692 -0
  131. data/ext/store.h +777 -0
  132. data/ext/term_vectors.c +352 -0
  133. data/ext/threading.h +31 -0
  134. data/ext/utilities.c +446 -0
  135. data/ext/win32.h +54 -0
  136. data/lib/ferret.rb +29 -0
  137. data/lib/ferret/browser.rb +246 -0
  138. data/lib/ferret/browser/s/global.js +192 -0
  139. data/lib/ferret/browser/s/style.css +148 -0
  140. data/lib/ferret/browser/views/document/list.rhtml +49 -0
  141. data/lib/ferret/browser/views/document/show.rhtml +27 -0
  142. data/lib/ferret/browser/views/error/index.rhtml +7 -0
  143. data/lib/ferret/browser/views/help/index.rhtml +8 -0
  144. data/lib/ferret/browser/views/home/index.rhtml +29 -0
  145. data/lib/ferret/browser/views/layout.rhtml +22 -0
  146. data/lib/ferret/browser/views/term-vector/index.rhtml +4 -0
  147. data/lib/ferret/browser/views/term/index.rhtml +199 -0
  148. data/lib/ferret/browser/views/term/termdocs.rhtml +1 -0
  149. data/lib/ferret/browser/webrick.rb +14 -0
  150. data/lib/ferret/document.rb +130 -0
  151. data/lib/ferret/field_infos.rb +44 -0
  152. data/lib/ferret/index.rb +786 -0
  153. data/lib/ferret/number_tools.rb +157 -0
  154. data/lib/ferret_version.rb +3 -0
  155. data/setup.rb +1555 -0
  156. data/test/test_all.rb +5 -0
  157. data/test/test_helper.rb +24 -0
  158. data/test/threading/number_to_spoken.rb +132 -0
  159. data/test/threading/thread_safety_index_test.rb +79 -0
  160. data/test/threading/thread_safety_read_write_test.rb +76 -0
  161. data/test/threading/thread_safety_test.rb +133 -0
  162. data/test/unit/analysis/tc_analyzer.rb +548 -0
  163. data/test/unit/analysis/tc_token_stream.rb +646 -0
  164. data/test/unit/index/tc_index.rb +762 -0
  165. data/test/unit/index/tc_index_reader.rb +699 -0
  166. data/test/unit/index/tc_index_writer.rb +437 -0
  167. data/test/unit/index/th_doc.rb +315 -0
  168. data/test/unit/largefile/tc_largefile.rb +46 -0
  169. data/test/unit/query_parser/tc_query_parser.rb +238 -0
  170. data/test/unit/search/tc_filter.rb +135 -0
  171. data/test/unit/search/tc_fuzzy_query.rb +147 -0
  172. data/test/unit/search/tc_index_searcher.rb +61 -0
  173. data/test/unit/search/tc_multi_searcher.rb +128 -0
  174. data/test/unit/search/tc_multiple_search_requests.rb +58 -0
  175. data/test/unit/search/tc_search_and_sort.rb +179 -0
  176. data/test/unit/search/tc_sort.rb +49 -0
  177. data/test/unit/search/tc_sort_field.rb +27 -0
  178. data/test/unit/search/tc_spans.rb +190 -0
  179. data/test/unit/search/tm_searcher.rb +384 -0
  180. data/test/unit/store/tc_fs_store.rb +77 -0
  181. data/test/unit/store/tc_ram_store.rb +35 -0
  182. data/test/unit/store/tm_store.rb +34 -0
  183. data/test/unit/store/tm_store_lock.rb +68 -0
  184. data/test/unit/tc_document.rb +81 -0
  185. data/test/unit/ts_analysis.rb +2 -0
  186. data/test/unit/ts_index.rb +2 -0
  187. data/test/unit/ts_largefile.rb +4 -0
  188. data/test/unit/ts_query_parser.rb +2 -0
  189. data/test/unit/ts_search.rb +2 -0
  190. data/test/unit/ts_store.rb +2 -0
  191. data/test/unit/ts_utils.rb +2 -0
  192. data/test/unit/utils/tc_bit_vector.rb +295 -0
  193. data/test/unit/utils/tc_number_tools.rb +117 -0
  194. data/test/unit/utils/tc_priority_queue.rb +106 -0
  195. metadata +285 -0
@@ -0,0 +1,16 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ extern struct SN_env * portuguese_ISO_8859_1_create_env(void);
9
+ extern void portuguese_ISO_8859_1_close_env(struct SN_env * z);
10
+
11
+ extern int portuguese_ISO_8859_1_stem(struct SN_env * z);
12
+
13
+ #ifdef __cplusplus
14
+ }
15
+ #endif
16
+
@@ -0,0 +1,1119 @@
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
+