ferret 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. data/Rakefile +23 -5
  2. data/TODO +2 -1
  3. data/ext/analysis.c +838 -177
  4. data/ext/analysis.h +55 -7
  5. data/ext/api.c +69 -0
  6. data/ext/api.h +27 -0
  7. data/ext/array.c +8 -5
  8. data/ext/compound_io.c +132 -96
  9. data/ext/document.c +58 -28
  10. data/ext/except.c +59 -0
  11. data/ext/except.h +88 -0
  12. data/ext/ferret.c +47 -3
  13. data/ext/ferret.h +3 -0
  14. data/ext/field.c +15 -9
  15. data/ext/filter.c +1 -1
  16. data/ext/fs_store.c +215 -34
  17. data/ext/global.c +72 -3
  18. data/ext/global.h +4 -3
  19. data/ext/hash.c +44 -3
  20. data/ext/hash.h +9 -0
  21. data/ext/header.h +58 -0
  22. data/ext/inc/except.h +88 -0
  23. data/ext/inc/lang.h +23 -13
  24. data/ext/ind.c +16 -10
  25. data/ext/index.h +2 -22
  26. data/ext/index_io.c +3 -11
  27. data/ext/index_rw.c +245 -193
  28. data/ext/lang.h +23 -13
  29. data/ext/libstemmer.c +92 -0
  30. data/ext/libstemmer.h +79 -0
  31. data/ext/modules.h +162 -0
  32. data/ext/q_boolean.c +34 -21
  33. data/ext/q_const_score.c +6 -12
  34. data/ext/q_filtered_query.c +206 -0
  35. data/ext/q_fuzzy.c +18 -15
  36. data/ext/q_match_all.c +3 -7
  37. data/ext/q_multi_phrase.c +10 -14
  38. data/ext/q_parser.c +29 -2
  39. data/ext/q_phrase.c +14 -21
  40. data/ext/q_prefix.c +15 -12
  41. data/ext/q_range.c +30 -28
  42. data/ext/q_span.c +13 -21
  43. data/ext/q_term.c +17 -26
  44. data/ext/r_analysis.c +693 -21
  45. data/ext/r_doc.c +11 -12
  46. data/ext/r_index_io.c +4 -1
  47. data/ext/r_qparser.c +21 -2
  48. data/ext/r_search.c +285 -18
  49. data/ext/ram_store.c +5 -2
  50. data/ext/search.c +11 -17
  51. data/ext/search.h +21 -45
  52. data/ext/similarity.h +67 -0
  53. data/ext/sort.c +30 -25
  54. data/ext/stem_ISO_8859_1_danish.c +338 -0
  55. data/ext/stem_ISO_8859_1_danish.h +16 -0
  56. data/ext/stem_ISO_8859_1_dutch.c +635 -0
  57. data/ext/stem_ISO_8859_1_dutch.h +16 -0
  58. data/ext/stem_ISO_8859_1_english.c +1156 -0
  59. data/ext/stem_ISO_8859_1_english.h +16 -0
  60. data/ext/stem_ISO_8859_1_finnish.c +792 -0
  61. data/ext/stem_ISO_8859_1_finnish.h +16 -0
  62. data/ext/stem_ISO_8859_1_french.c +1276 -0
  63. data/ext/stem_ISO_8859_1_french.h +16 -0
  64. data/ext/stem_ISO_8859_1_german.c +512 -0
  65. data/ext/stem_ISO_8859_1_german.h +16 -0
  66. data/ext/stem_ISO_8859_1_italian.c +1091 -0
  67. data/ext/stem_ISO_8859_1_italian.h +16 -0
  68. data/ext/stem_ISO_8859_1_norwegian.c +296 -0
  69. data/ext/stem_ISO_8859_1_norwegian.h +16 -0
  70. data/ext/stem_ISO_8859_1_porter.c +776 -0
  71. data/ext/stem_ISO_8859_1_porter.h +16 -0
  72. data/ext/stem_ISO_8859_1_portuguese.c +1035 -0
  73. data/ext/stem_ISO_8859_1_portuguese.h +16 -0
  74. data/ext/stem_ISO_8859_1_spanish.c +1119 -0
  75. data/ext/stem_ISO_8859_1_spanish.h +16 -0
  76. data/ext/stem_ISO_8859_1_swedish.c +307 -0
  77. data/ext/stem_ISO_8859_1_swedish.h +16 -0
  78. data/ext/stem_KOI8_R_russian.c +701 -0
  79. data/ext/stem_KOI8_R_russian.h +16 -0
  80. data/ext/stem_UTF_8_danish.c +344 -0
  81. data/ext/stem_UTF_8_danish.h +16 -0
  82. data/ext/stem_UTF_8_dutch.c +653 -0
  83. data/ext/stem_UTF_8_dutch.h +16 -0
  84. data/ext/stem_UTF_8_english.c +1176 -0
  85. data/ext/stem_UTF_8_english.h +16 -0
  86. data/ext/stem_UTF_8_finnish.c +808 -0
  87. data/ext/stem_UTF_8_finnish.h +16 -0
  88. data/ext/stem_UTF_8_french.c +1296 -0
  89. data/ext/stem_UTF_8_french.h +16 -0
  90. data/ext/stem_UTF_8_german.c +526 -0
  91. data/ext/stem_UTF_8_german.h +16 -0
  92. data/ext/stem_UTF_8_italian.c +1113 -0
  93. data/ext/stem_UTF_8_italian.h +16 -0
  94. data/ext/stem_UTF_8_norwegian.c +302 -0
  95. data/ext/stem_UTF_8_norwegian.h +16 -0
  96. data/ext/stem_UTF_8_porter.c +794 -0
  97. data/ext/stem_UTF_8_porter.h +16 -0
  98. data/ext/stem_UTF_8_portuguese.c +1055 -0
  99. data/ext/stem_UTF_8_portuguese.h +16 -0
  100. data/ext/stem_UTF_8_russian.c +709 -0
  101. data/ext/stem_UTF_8_russian.h +16 -0
  102. data/ext/stem_UTF_8_spanish.c +1137 -0
  103. data/ext/stem_UTF_8_spanish.h +16 -0
  104. data/ext/stem_UTF_8_swedish.c +313 -0
  105. data/ext/stem_UTF_8_swedish.h +16 -0
  106. data/ext/stopwords.c +325 -0
  107. data/ext/store.c +34 -2
  108. data/ext/tags +2953 -0
  109. data/ext/term.c +21 -15
  110. data/ext/termdocs.c +5 -3
  111. data/ext/utilities.c +446 -0
  112. data/ext/vector.c +27 -13
  113. data/lib/ferret/document/document.rb +1 -1
  114. data/lib/ferret/index/index.rb +44 -6
  115. data/lib/ferret/query_parser/query_parser.tab.rb +7 -3
  116. data/lib/rferret.rb +2 -1
  117. data/test/test_helper.rb +2 -2
  118. data/test/unit/analysis/ctc_analyzer.rb +401 -0
  119. data/test/unit/analysis/ctc_tokenstream.rb +423 -0
  120. data/test/unit/analysis/{tc_letter_tokenizer.rb → rtc_letter_tokenizer.rb} +0 -0
  121. data/test/unit/analysis/{tc_lower_case_filter.rb → rtc_lower_case_filter.rb} +0 -0
  122. data/test/unit/analysis/{tc_lower_case_tokenizer.rb → rtc_lower_case_tokenizer.rb} +0 -0
  123. data/test/unit/analysis/{tc_per_field_analyzer_wrapper.rb → rtc_per_field_analyzer_wrapper.rb} +0 -0
  124. data/test/unit/analysis/{tc_porter_stem_filter.rb → rtc_porter_stem_filter.rb} +0 -0
  125. data/test/unit/analysis/{tc_standard_analyzer.rb → rtc_standard_analyzer.rb} +0 -0
  126. data/test/unit/analysis/{tc_standard_tokenizer.rb → rtc_standard_tokenizer.rb} +0 -0
  127. data/test/unit/analysis/{tc_stop_analyzer.rb → rtc_stop_analyzer.rb} +0 -0
  128. data/test/unit/analysis/{tc_stop_filter.rb → rtc_stop_filter.rb} +0 -0
  129. data/test/unit/analysis/{tc_white_space_analyzer.rb → rtc_white_space_analyzer.rb} +0 -0
  130. data/test/unit/analysis/{tc_white_space_tokenizer.rb → rtc_white_space_tokenizer.rb} +0 -0
  131. data/test/unit/analysis/{tc_word_list_loader.rb → rtc_word_list_loader.rb} +0 -0
  132. data/test/unit/analysis/tc_analyzer.rb +1 -2
  133. data/test/unit/analysis/{c_token.rb → tc_token.rb} +0 -0
  134. data/test/unit/document/rtc_field.rb +28 -0
  135. data/test/unit/document/{c_document.rb → tc_document.rb} +0 -0
  136. data/test/unit/document/tc_field.rb +82 -12
  137. data/test/unit/index/{tc_compound_file_io.rb → rtc_compound_file_io.rb} +0 -0
  138. data/test/unit/index/{tc_field_infos.rb → rtc_field_infos.rb} +0 -0
  139. data/test/unit/index/{tc_fields_io.rb → rtc_fields_io.rb} +0 -0
  140. data/test/unit/index/{tc_multiple_term_doc_pos_enum.rb → rtc_multiple_term_doc_pos_enum.rb} +0 -0
  141. data/test/unit/index/{tc_segment_infos.rb → rtc_segment_infos.rb} +0 -0
  142. data/test/unit/index/{tc_segment_term_docs.rb → rtc_segment_term_docs.rb} +0 -0
  143. data/test/unit/index/{tc_segment_term_enum.rb → rtc_segment_term_enum.rb} +0 -0
  144. data/test/unit/index/{tc_segment_term_vector.rb → rtc_segment_term_vector.rb} +0 -0
  145. data/test/unit/index/{tc_term_buffer.rb → rtc_term_buffer.rb} +0 -0
  146. data/test/unit/index/{tc_term_info.rb → rtc_term_info.rb} +0 -0
  147. data/test/unit/index/{tc_term_infos_io.rb → rtc_term_infos_io.rb} +0 -0
  148. data/test/unit/index/{tc_term_vectors_io.rb → rtc_term_vectors_io.rb} +0 -0
  149. data/test/unit/index/{c_index.rb → tc_index.rb} +26 -6
  150. data/test/unit/index/{c_index_reader.rb → tc_index_reader.rb} +0 -0
  151. data/test/unit/index/{c_index_writer.rb → tc_index_writer.rb} +0 -0
  152. data/test/unit/index/{c_term.rb → tc_term.rb} +0 -0
  153. data/test/unit/index/{c_term_voi.rb → tc_term_voi.rb} +0 -0
  154. data/test/unit/query_parser/{c_query_parser.rb → rtc_query_parser.rb} +14 -14
  155. data/test/unit/query_parser/tc_query_parser.rb +24 -16
  156. data/test/unit/search/{tc_similarity.rb → rtc_similarity.rb} +0 -0
  157. data/test/unit/search/rtc_sort_field.rb +14 -0
  158. data/test/unit/search/{c_filter.rb → tc_filter.rb} +11 -11
  159. data/test/unit/search/{c_fuzzy_query.rb → tc_fuzzy_query.rb} +0 -0
  160. data/test/unit/search/{c_index_searcher.rb → tc_index_searcher.rb} +0 -0
  161. data/test/unit/search/{c_search_and_sort.rb → tc_search_and_sort.rb} +0 -0
  162. data/test/unit/search/{c_sort.rb → tc_sort.rb} +0 -0
  163. data/test/unit/search/tc_sort_field.rb +20 -7
  164. data/test/unit/search/{c_spans.rb → tc_spans.rb} +0 -0
  165. data/test/unit/store/rtc_fs_store.rb +62 -0
  166. data/test/unit/store/rtc_ram_store.rb +15 -0
  167. data/test/unit/store/rtm_store.rb +150 -0
  168. data/test/unit/store/rtm_store_lock.rb +2 -0
  169. data/test/unit/store/tc_fs_store.rb +54 -40
  170. data/test/unit/store/tc_ram_store.rb +20 -0
  171. data/test/unit/store/tm_store.rb +30 -146
  172. data/test/unit/store/tm_store_lock.rb +66 -0
  173. data/test/unit/utils/{tc_bit_vector.rb → rtc_bit_vector.rb} +0 -0
  174. data/test/unit/utils/{tc_date_tools.rb → rtc_date_tools.rb} +0 -0
  175. data/test/unit/utils/{tc_number_tools.rb → rtc_number_tools.rb} +0 -0
  176. data/test/unit/utils/{tc_parameter.rb → rtc_parameter.rb} +0 -0
  177. data/test/unit/utils/{tc_priority_queue.rb → rtc_priority_queue.rb} +0 -0
  178. data/test/unit/utils/{tc_string_helper.rb → rtc_string_helper.rb} +0 -0
  179. data/test/unit/utils/{tc_thread.rb → rtc_thread.rb} +0 -0
  180. data/test/unit/utils/{tc_weak_key_hash.rb → rtc_weak_key_hash.rb} +0 -0
  181. metadata +360 -289
  182. data/test/unit/document/c_field.rb +0 -98
  183. data/test/unit/search/c_sort_field.rb +0 -27
  184. data/test/unit/store/c_fs_store.rb +0 -76
  185. data/test/unit/store/c_ram_store.rb +0 -35
  186. data/test/unit/store/m_store.rb +0 -34
  187. data/test/unit/store/m_store_lock.rb +0 -68
@@ -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 * porter_ISO_8859_1_create_env(void);
9
+ extern void porter_ISO_8859_1_close_env(struct SN_env * z);
10
+
11
+ extern int porter_ISO_8859_1_stem(struct SN_env * z);
12
+
13
+ #ifdef __cplusplus
14
+ }
15
+ #endif
16
+
@@ -0,0 +1,1035 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #include "header.h"
5
+
6
+ extern int portuguese_ISO_8859_1_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_ISO_8859_1_create_env(void);
19
+ extern void portuguese_ISO_8859_1_close_env(struct SN_env * z);
20
+
21
+ static symbol s_0_1[1] = { 0xE3 };
22
+ static symbol s_0_2[1] = { 0xF5 };
23
+
24
+ static struct among a_0[3] =
25
+ {
26
+ /* 0 */ { 0, 0, -1, 3, 0},
27
+ /* 1 */ { 1, s_0_1, 0, 1, 0},
28
+ /* 2 */ { 1, 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[4] = { 0xED, '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 */ { 4, 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[5] = { 0xE2, 'n', 'c', 'i', 'a' };
78
+ static symbol s_5_2[5] = { 0xEA, '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[5] = { 'l', 'o', 'g', 0xED, '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[4] = { 0xE1, 'v', 'e', 'l' };
91
+ static symbol s_5_15[4] = { 0xED, 'v', 'e', 'l' };
92
+ static symbol s_5_16[5] = { 'u', 'c', 'i', 0xF3, '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[5] = { 'a', 0xE7, '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[6] = { 0xEA, '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[6] = { 'l', 'o', 'g', 0xED, '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[6] = { 'a', 0xE7, '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 */ { 5, s_5_1, -1, 1, 0},
126
+ /* 2 */ { 5, 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 */ { 5, 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 */ { 4, s_5_14, -1, 1, 0},
139
+ /* 15 */ { 4, s_5_15, -1, 1, 0},
140
+ /* 16 */ { 5, 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 */ { 5, 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 */ { 6, 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 */ { 6, 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 */ { 6, 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[5] = { 0xE1, 'r', 'e', 'i', 's' };
249
+ static symbol s_6_78[5] = { 0xE9, 'r', 'e', 'i', 's' };
250
+ static symbol s_6_79[5] = { 0xED, 'r', 'e', 'i', 's' };
251
+ static symbol s_6_80[6] = { 0xE1, 's', 's', 'e', 'i', 's' };
252
+ static symbol s_6_81[6] = { 0xE9, 's', 's', 'e', 'i', 's' };
253
+ static symbol s_6_82[6] = { 0xED, 's', 's', 'e', 'i', 's' };
254
+ static symbol s_6_83[5] = { 0xE1, 'v', 'e', 'i', 's' };
255
+ static symbol s_6_84[4] = { 0xED, 'e', 'i', 's' };
256
+ static symbol s_6_85[6] = { 'a', 'r', 0xED, 'e', 'i', 's' };
257
+ static symbol s_6_86[6] = { 'e', 'r', 0xED, 'e', 'i', 's' };
258
+ static symbol s_6_87[6] = { 'i', 'r', 0xED, '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[6] = { 0xE1, 'r', 'a', 'm', 'o', 's' };
263
+ static symbol s_6_92[6] = { 0xE9, 'r', 'a', 'm', 'o', 's' };
264
+ static symbol s_6_93[6] = { 0xED, 'r', 'a', 'm', 'o', 's' };
265
+ static symbol s_6_94[6] = { 0xE1, 'v', 'a', 'm', 'o', 's' };
266
+ static symbol s_6_95[5] = { 0xED, 'a', 'm', 'o', 's' };
267
+ static symbol s_6_96[7] = { 'a', 'r', 0xED, 'a', 'm', 'o', 's' };
268
+ static symbol s_6_97[7] = { 'e', 'r', 0xED, 'a', 'm', 'o', 's' };
269
+ static symbol s_6_98[7] = { 'i', 'r', 0xED, '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[7] = { 0xE1, 's', 's', 'e', 'm', 'o', 's' };
275
+ static symbol s_6_104[7] = { 0xEA, 's', 's', 'e', 'm', 'o', 's' };
276
+ static symbol s_6_105[7] = { 0xED, '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[4] = { 0xE1, 'm', 'o', 's' };
282
+ static symbol s_6_111[4] = { 'a', 'r', 0xE1, 's' };
283
+ static symbol s_6_112[4] = { 'e', 'r', 0xE1, 's' };
284
+ static symbol s_6_113[4] = { 'i', 'r', 0xE1, '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[3] = { 'a', 'r', 0xE1 };
289
+ static symbol s_6_118[3] = { 'e', 'r', 0xE1 };
290
+ static symbol s_6_119[3] = { 'i', 'r', 0xE1 };
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 */ { 5, s_6_77, 73, 1, 0},
372
+ /* 78 */ { 5, s_6_78, 73, 1, 0},
373
+ /* 79 */ { 5, s_6_79, 73, 1, 0},
374
+ /* 80 */ { 6, s_6_80, 73, 1, 0},
375
+ /* 81 */ { 6, s_6_81, 73, 1, 0},
376
+ /* 82 */ { 6, s_6_82, 73, 1, 0},
377
+ /* 83 */ { 5, s_6_83, 73, 1, 0},
378
+ /* 84 */ { 4, s_6_84, 73, 1, 0},
379
+ /* 85 */ { 6, s_6_85, 84, 1, 0},
380
+ /* 86 */ { 6, s_6_86, 84, 1, 0},
381
+ /* 87 */ { 6, 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 */ { 6, s_6_91, 90, 1, 0},
386
+ /* 92 */ { 6, s_6_92, 90, 1, 0},
387
+ /* 93 */ { 6, s_6_93, 90, 1, 0},
388
+ /* 94 */ { 6, s_6_94, 90, 1, 0},
389
+ /* 95 */ { 5, s_6_95, 90, 1, 0},
390
+ /* 96 */ { 7, s_6_96, 95, 1, 0},
391
+ /* 97 */ { 7, s_6_97, 95, 1, 0},
392
+ /* 98 */ { 7, 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 */ { 7, s_6_103, 99, 1, 0},
398
+ /*104 */ { 7, s_6_104, 99, 1, 0},
399
+ /*105 */ { 7, 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 */ { 4, s_6_110, -1, 1, 0},
405
+ /*111 */ { 4, s_6_111, -1, 1, 0},
406
+ /*112 */ { 4, s_6_112, -1, 1, 0},
407
+ /*113 */ { 4, 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 */ { 3, s_6_117, -1, 1, 0},
412
+ /*118 */ { 3, s_6_118, -1, 1, 0},
413
+ /*119 */ { 3, 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[1] = { 0xE1 };
421
+ static symbol s_7_5[1] = { 0xED };
422
+ static symbol s_7_6[1] = { 0xF3 };
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 */ { 1, s_7_4, -1, 1, 0},
431
+ /* 5 */ { 1, s_7_5, -1, 1, 0},
432
+ /* 6 */ { 1, s_7_6, -1, 1, 0}
433
+ };
434
+
435
+ static symbol s_8_0[1] = { 'e' };
436
+ static symbol s_8_1[1] = { 0xE7 };
437
+ static symbol s_8_2[1] = { 0xE9 };
438
+ static symbol s_8_3[1] = { 0xEA };
439
+
440
+ static struct among a_8[4] =
441
+ {
442
+ /* 0 */ { 1, s_8_0, -1, 1, 0},
443
+ /* 1 */ { 1, s_8_1, -1, 2, 0},
444
+ /* 2 */ { 1, s_8_2, -1, 1, 0},
445
+ /* 3 */ { 1, 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[] = { 0xE3 };
453
+ static symbol s_3[] = { 0xF5 };
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
+ if (z->c >= z->l) goto lab0;
493
+ z->c++; /* next, line 40 */
494
+ break;
495
+ }
496
+ continue;
497
+ lab0:
498
+ z->c = c;
499
+ break;
500
+ }
501
+ return 1;
502
+ }
503
+
504
+ static int r_mark_regions(struct SN_env * z) {
505
+ z->I[0] = z->l;
506
+ z->I[1] = z->l;
507
+ z->I[2] = z->l;
508
+ { int c = z->c; /* do, line 50 */
509
+ { int c = z->c; /* or, line 52 */
510
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab2;
511
+ { int c = z->c; /* or, line 51 */
512
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab4;
513
+ while(1) { /* gopast, line 51 */
514
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab5;
515
+ break;
516
+ lab5:
517
+ if (z->c >= z->l) goto lab4;
518
+ z->c++; /* gopast, line 51 */
519
+ }
520
+ goto lab3;
521
+ lab4:
522
+ z->c = c;
523
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab2;
524
+ while(1) { /* gopast, line 51 */
525
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab6;
526
+ break;
527
+ lab6:
528
+ if (z->c >= z->l) goto lab2;
529
+ z->c++; /* gopast, line 51 */
530
+ }
531
+ }
532
+ lab3:
533
+ goto lab1;
534
+ lab2:
535
+ z->c = c;
536
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab0;
537
+ { int c = z->c; /* or, line 53 */
538
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab8;
539
+ while(1) { /* gopast, line 53 */
540
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab9;
541
+ break;
542
+ lab9:
543
+ if (z->c >= z->l) goto lab8;
544
+ z->c++; /* gopast, line 53 */
545
+ }
546
+ goto lab7;
547
+ lab8:
548
+ z->c = c;
549
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab0;
550
+ if (z->c >= z->l) goto lab0;
551
+ z->c++; /* next, line 53 */
552
+ }
553
+ lab7:
554
+ ;
555
+ }
556
+ lab1:
557
+ z->I[0] = z->c; /* setmark pV, line 54 */
558
+ lab0:
559
+ z->c = c;
560
+ }
561
+ { int c = z->c; /* do, line 56 */
562
+ while(1) { /* gopast, line 57 */
563
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab11;
564
+ break;
565
+ lab11:
566
+ if (z->c >= z->l) goto lab10;
567
+ z->c++; /* gopast, line 57 */
568
+ }
569
+ while(1) { /* gopast, line 57 */
570
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab12;
571
+ break;
572
+ lab12:
573
+ if (z->c >= z->l) goto lab10;
574
+ z->c++; /* gopast, line 57 */
575
+ }
576
+ z->I[1] = z->c; /* setmark p1, line 57 */
577
+ while(1) { /* gopast, line 58 */
578
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab13;
579
+ break;
580
+ lab13:
581
+ if (z->c >= z->l) goto lab10;
582
+ z->c++; /* gopast, line 58 */
583
+ }
584
+ while(1) { /* gopast, line 58 */
585
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab14;
586
+ break;
587
+ lab14:
588
+ if (z->c >= z->l) goto lab10;
589
+ z->c++; /* gopast, line 58 */
590
+ }
591
+ z->I[2] = z->c; /* setmark p2, line 58 */
592
+ lab10:
593
+ z->c = c;
594
+ }
595
+ return 1;
596
+ }
597
+
598
+ static int r_postlude(struct SN_env * z) {
599
+ int among_var;
600
+ while(1) { /* repeat, line 62 */
601
+ int c = z->c;
602
+ z->bra = z->c; /* [, line 63 */
603
+ among_var = find_among(z, a_1, 3); /* substring, line 63 */
604
+ if (!(among_var)) goto lab0;
605
+ z->ket = z->c; /* ], line 63 */
606
+ switch(among_var) {
607
+ case 0: goto lab0;
608
+ case 1:
609
+ { int ret;
610
+ ret = slice_from_s(z, 1, s_2); /* <-, line 64 */
611
+ if (ret < 0) return ret;
612
+ }
613
+ break;
614
+ case 2:
615
+ { int ret;
616
+ ret = slice_from_s(z, 1, s_3); /* <-, line 65 */
617
+ if (ret < 0) return ret;
618
+ }
619
+ break;
620
+ case 3:
621
+ if (z->c >= z->l) goto lab0;
622
+ z->c++; /* next, line 66 */
623
+ break;
624
+ }
625
+ continue;
626
+ lab0:
627
+ z->c = c;
628
+ break;
629
+ }
630
+ return 1;
631
+ }
632
+
633
+ static int r_RV(struct SN_env * z) {
634
+ if (!(z->I[0] <= z->c)) return 0;
635
+ return 1;
636
+ }
637
+
638
+ static int r_R1(struct SN_env * z) {
639
+ if (!(z->I[1] <= z->c)) return 0;
640
+ return 1;
641
+ }
642
+
643
+ static int r_R2(struct SN_env * z) {
644
+ if (!(z->I[2] <= z->c)) return 0;
645
+ return 1;
646
+ }
647
+
648
+ static int r_standard_suffix(struct SN_env * z) {
649
+ int among_var;
650
+ z->ket = z->c; /* [, line 77 */
651
+ among_var = find_among_b(z, a_5, 45); /* substring, line 77 */
652
+ if (!(among_var)) return 0;
653
+ z->bra = z->c; /* ], line 77 */
654
+ switch(among_var) {
655
+ case 0: return 0;
656
+ case 1:
657
+ { int ret = r_R2(z);
658
+ if (ret == 0) return 0; /* call R2, line 93 */
659
+ if (ret < 0) return ret;
660
+ }
661
+ { int ret;
662
+ ret = slice_del(z); /* delete, line 93 */
663
+ if (ret < 0) return ret;
664
+ }
665
+ break;
666
+ case 2:
667
+ { int ret = r_R2(z);
668
+ if (ret == 0) return 0; /* call R2, line 98 */
669
+ if (ret < 0) return ret;
670
+ }
671
+ { int ret;
672
+ ret = slice_from_s(z, 3, s_4); /* <-, line 98 */
673
+ if (ret < 0) return ret;
674
+ }
675
+ break;
676
+ case 3:
677
+ { int ret = r_R2(z);
678
+ if (ret == 0) return 0; /* call R2, line 102 */
679
+ if (ret < 0) return ret;
680
+ }
681
+ { int ret;
682
+ ret = slice_from_s(z, 1, s_5); /* <-, line 102 */
683
+ if (ret < 0) return ret;
684
+ }
685
+ break;
686
+ case 4:
687
+ { int ret = r_R2(z);
688
+ if (ret == 0) return 0; /* call R2, line 106 */
689
+ if (ret < 0) return ret;
690
+ }
691
+ { int ret;
692
+ ret = slice_from_s(z, 4, s_6); /* <-, line 106 */
693
+ if (ret < 0) return ret;
694
+ }
695
+ break;
696
+ case 5:
697
+ { int ret = r_R1(z);
698
+ if (ret == 0) return 0; /* call R1, line 110 */
699
+ if (ret < 0) return ret;
700
+ }
701
+ { int ret;
702
+ ret = slice_del(z); /* delete, line 110 */
703
+ if (ret < 0) return ret;
704
+ }
705
+ { int m = z->l - z->c; (void) m; /* try, line 111 */
706
+ z->ket = z->c; /* [, line 112 */
707
+ among_var = find_among_b(z, a_2, 4); /* substring, line 112 */
708
+ if (!(among_var)) { z->c = z->l - m; goto lab0; }
709
+ z->bra = z->c; /* ], line 112 */
710
+ { int ret = r_R2(z);
711
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 112 */
712
+ if (ret < 0) return ret;
713
+ }
714
+ { int ret;
715
+ ret = slice_del(z); /* delete, line 112 */
716
+ if (ret < 0) return ret;
717
+ }
718
+ switch(among_var) {
719
+ case 0: { z->c = z->l - m; goto lab0; }
720
+ case 1:
721
+ z->ket = z->c; /* [, line 113 */
722
+ if (!(eq_s_b(z, 2, s_7))) { z->c = z->l - m; goto lab0; }
723
+ z->bra = z->c; /* ], line 113 */
724
+ { int ret = r_R2(z);
725
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 113 */
726
+ if (ret < 0) return ret;
727
+ }
728
+ { int ret;
729
+ ret = slice_del(z); /* delete, line 113 */
730
+ if (ret < 0) return ret;
731
+ }
732
+ break;
733
+ }
734
+ lab0:
735
+ ;
736
+ }
737
+ break;
738
+ case 6:
739
+ { int ret = r_R2(z);
740
+ if (ret == 0) return 0; /* call R2, line 122 */
741
+ if (ret < 0) return ret;
742
+ }
743
+ { int ret;
744
+ ret = slice_del(z); /* delete, line 122 */
745
+ if (ret < 0) return ret;
746
+ }
747
+ { int m = z->l - z->c; (void) m; /* try, line 123 */
748
+ z->ket = z->c; /* [, line 124 */
749
+ among_var = find_among_b(z, a_3, 3); /* substring, line 124 */
750
+ if (!(among_var)) { z->c = z->l - m; goto lab1; }
751
+ z->bra = z->c; /* ], line 124 */
752
+ switch(among_var) {
753
+ case 0: { z->c = z->l - m; goto lab1; }
754
+ case 1:
755
+ { int ret = r_R2(z);
756
+ if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 127 */
757
+ if (ret < 0) return ret;
758
+ }
759
+ { int ret;
760
+ ret = slice_del(z); /* delete, line 127 */
761
+ if (ret < 0) return ret;
762
+ }
763
+ break;
764
+ }
765
+ lab1:
766
+ ;
767
+ }
768
+ break;
769
+ case 7:
770
+ { int ret = r_R2(z);
771
+ if (ret == 0) return 0; /* call R2, line 134 */
772
+ if (ret < 0) return ret;
773
+ }
774
+ { int ret;
775
+ ret = slice_del(z); /* delete, line 134 */
776
+ if (ret < 0) return ret;
777
+ }
778
+ { int m = z->l - z->c; (void) m; /* try, line 135 */
779
+ z->ket = z->c; /* [, line 136 */
780
+ among_var = find_among_b(z, a_4, 3); /* substring, line 136 */
781
+ if (!(among_var)) { z->c = z->l - m; goto lab2; }
782
+ z->bra = z->c; /* ], line 136 */
783
+ switch(among_var) {
784
+ case 0: { z->c = z->l - m; goto lab2; }
785
+ case 1:
786
+ { int ret = r_R2(z);
787
+ if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 139 */
788
+ if (ret < 0) return ret;
789
+ }
790
+ { int ret;
791
+ ret = slice_del(z); /* delete, line 139 */
792
+ if (ret < 0) return ret;
793
+ }
794
+ break;
795
+ }
796
+ lab2:
797
+ ;
798
+ }
799
+ break;
800
+ case 8:
801
+ { int ret = r_R2(z);
802
+ if (ret == 0) return 0; /* call R2, line 146 */
803
+ if (ret < 0) return ret;
804
+ }
805
+ { int ret;
806
+ ret = slice_del(z); /* delete, line 146 */
807
+ if (ret < 0) return ret;
808
+ }
809
+ { int m = z->l - z->c; (void) m; /* try, line 147 */
810
+ z->ket = z->c; /* [, line 148 */
811
+ if (!(eq_s_b(z, 2, s_8))) { z->c = z->l - m; goto lab3; }
812
+ z->bra = z->c; /* ], line 148 */
813
+ { int ret = r_R2(z);
814
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 148 */
815
+ if (ret < 0) return ret;
816
+ }
817
+ { int ret;
818
+ ret = slice_del(z); /* delete, line 148 */
819
+ if (ret < 0) return ret;
820
+ }
821
+ lab3:
822
+ ;
823
+ }
824
+ break;
825
+ case 9:
826
+ { int ret = r_RV(z);
827
+ if (ret == 0) return 0; /* call RV, line 153 */
828
+ if (ret < 0) return ret;
829
+ }
830
+ if (!(eq_s_b(z, 1, s_9))) return 0;
831
+ { int ret;
832
+ ret = slice_from_s(z, 2, s_10); /* <-, line 154 */
833
+ if (ret < 0) return ret;
834
+ }
835
+ break;
836
+ }
837
+ return 1;
838
+ }
839
+
840
+ static int r_verb_suffix(struct SN_env * z) {
841
+ int among_var;
842
+ { int m3; /* setlimit, line 159 */
843
+ int m = z->l - z->c; (void) m;
844
+ if (z->c < z->I[0]) return 0;
845
+ z->c = z->I[0]; /* tomark, line 159 */
846
+ m3 = z->lb; z->lb = z->c;
847
+ z->c = z->l - m;
848
+ z->ket = z->c; /* [, line 160 */
849
+ among_var = find_among_b(z, a_6, 120); /* substring, line 160 */
850
+ if (!(among_var)) { z->lb = m3; return 0; }
851
+ z->bra = z->c; /* ], line 160 */
852
+ switch(among_var) {
853
+ case 0: { z->lb = m3; return 0; }
854
+ case 1:
855
+ { int ret;
856
+ ret = slice_del(z); /* delete, line 179 */
857
+ if (ret < 0) return ret;
858
+ }
859
+ break;
860
+ }
861
+ z->lb = m3;
862
+ }
863
+ return 1;
864
+ }
865
+
866
+ static int r_residual_suffix(struct SN_env * z) {
867
+ int among_var;
868
+ z->ket = z->c; /* [, line 184 */
869
+ among_var = find_among_b(z, a_7, 7); /* substring, line 184 */
870
+ if (!(among_var)) return 0;
871
+ z->bra = z->c; /* ], line 184 */
872
+ switch(among_var) {
873
+ case 0: return 0;
874
+ case 1:
875
+ { int ret = r_RV(z);
876
+ if (ret == 0) return 0; /* call RV, line 187 */
877
+ if (ret < 0) return ret;
878
+ }
879
+ { int ret;
880
+ ret = slice_del(z); /* delete, line 187 */
881
+ if (ret < 0) return ret;
882
+ }
883
+ break;
884
+ }
885
+ return 1;
886
+ }
887
+
888
+ static int r_residual_form(struct SN_env * z) {
889
+ int among_var;
890
+ z->ket = z->c; /* [, line 192 */
891
+ among_var = find_among_b(z, a_8, 4); /* substring, line 192 */
892
+ if (!(among_var)) return 0;
893
+ z->bra = z->c; /* ], line 192 */
894
+ switch(among_var) {
895
+ case 0: return 0;
896
+ case 1:
897
+ { int ret = r_RV(z);
898
+ if (ret == 0) return 0; /* call RV, line 194 */
899
+ if (ret < 0) return ret;
900
+ }
901
+ { int ret;
902
+ ret = slice_del(z); /* delete, line 194 */
903
+ if (ret < 0) return ret;
904
+ }
905
+ z->ket = z->c; /* [, line 194 */
906
+ { int m = z->l - z->c; (void) m; /* or, line 194 */
907
+ if (!(eq_s_b(z, 1, s_11))) goto lab1;
908
+ z->bra = z->c; /* ], line 194 */
909
+ { int m_test = z->l - z->c; /* test, line 194 */
910
+ if (!(eq_s_b(z, 1, s_12))) goto lab1;
911
+ z->c = z->l - m_test;
912
+ }
913
+ goto lab0;
914
+ lab1:
915
+ z->c = z->l - m;
916
+ if (!(eq_s_b(z, 1, s_13))) return 0;
917
+ z->bra = z->c; /* ], line 195 */
918
+ { int m_test = z->l - z->c; /* test, line 195 */
919
+ if (!(eq_s_b(z, 1, s_14))) return 0;
920
+ z->c = z->l - m_test;
921
+ }
922
+ }
923
+ lab0:
924
+ { int ret = r_RV(z);
925
+ if (ret == 0) return 0; /* call RV, line 195 */
926
+ if (ret < 0) return ret;
927
+ }
928
+ { int ret;
929
+ ret = slice_del(z); /* delete, line 195 */
930
+ if (ret < 0) return ret;
931
+ }
932
+ break;
933
+ case 2:
934
+ { int ret;
935
+ ret = slice_from_s(z, 1, s_15); /* <-, line 196 */
936
+ if (ret < 0) return ret;
937
+ }
938
+ break;
939
+ }
940
+ return 1;
941
+ }
942
+
943
+ extern int portuguese_ISO_8859_1_stem(struct SN_env * z) {
944
+ { int c = z->c; /* do, line 202 */
945
+ { int ret = r_prelude(z);
946
+ if (ret == 0) goto lab0; /* call prelude, line 202 */
947
+ if (ret < 0) return ret;
948
+ }
949
+ lab0:
950
+ z->c = c;
951
+ }
952
+ { int c = z->c; /* do, line 203 */
953
+ { int ret = r_mark_regions(z);
954
+ if (ret == 0) goto lab1; /* call mark_regions, line 203 */
955
+ if (ret < 0) return ret;
956
+ }
957
+ lab1:
958
+ z->c = c;
959
+ }
960
+ z->lb = z->c; z->c = z->l; /* backwards, line 204 */
961
+
962
+ { int m = z->l - z->c; (void) m; /* do, line 205 */
963
+ { int m = z->l - z->c; (void) m; /* or, line 209 */
964
+ { int m = z->l - z->c; (void) m; /* and, line 207 */
965
+ { int m = z->l - z->c; (void) m; /* or, line 206 */
966
+ { int ret = r_standard_suffix(z);
967
+ if (ret == 0) goto lab6; /* call standard_suffix, line 206 */
968
+ if (ret < 0) return ret;
969
+ }
970
+ goto lab5;
971
+ lab6:
972
+ z->c = z->l - m;
973
+ { int ret = r_verb_suffix(z);
974
+ if (ret == 0) goto lab4; /* call verb_suffix, line 206 */
975
+ if (ret < 0) return ret;
976
+ }
977
+ }
978
+ lab5:
979
+ z->c = z->l - m;
980
+ { int m = z->l - z->c; (void) m; /* do, line 207 */
981
+ z->ket = z->c; /* [, line 207 */
982
+ if (!(eq_s_b(z, 1, s_16))) goto lab7;
983
+ z->bra = z->c; /* ], line 207 */
984
+ { int m_test = z->l - z->c; /* test, line 207 */
985
+ if (!(eq_s_b(z, 1, s_17))) goto lab7;
986
+ z->c = z->l - m_test;
987
+ }
988
+ { int ret = r_RV(z);
989
+ if (ret == 0) goto lab7; /* call RV, line 207 */
990
+ if (ret < 0) return ret;
991
+ }
992
+ { int ret;
993
+ ret = slice_del(z); /* delete, line 207 */
994
+ if (ret < 0) return ret;
995
+ }
996
+ lab7:
997
+ z->c = z->l - m;
998
+ }
999
+ }
1000
+ goto lab3;
1001
+ lab4:
1002
+ z->c = z->l - m;
1003
+ { int ret = r_residual_suffix(z);
1004
+ if (ret == 0) goto lab2; /* call residual_suffix, line 209 */
1005
+ if (ret < 0) return ret;
1006
+ }
1007
+ }
1008
+ lab3:
1009
+ lab2:
1010
+ z->c = z->l - m;
1011
+ }
1012
+ { int m = z->l - z->c; (void) m; /* do, line 211 */
1013
+ { int ret = r_residual_form(z);
1014
+ if (ret == 0) goto lab8; /* call residual_form, line 211 */
1015
+ if (ret < 0) return ret;
1016
+ }
1017
+ lab8:
1018
+ z->c = z->l - m;
1019
+ }
1020
+ z->c = z->lb;
1021
+ { int c = z->c; /* do, line 213 */
1022
+ { int ret = r_postlude(z);
1023
+ if (ret == 0) goto lab9; /* call postlude, line 213 */
1024
+ if (ret < 0) return ret;
1025
+ }
1026
+ lab9:
1027
+ z->c = c;
1028
+ }
1029
+ return 1;
1030
+ }
1031
+
1032
+ extern struct SN_env * portuguese_ISO_8859_1_create_env(void) { return SN_create_env(0, 3, 0); }
1033
+
1034
+ extern void portuguese_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z); }
1035
+