isomorfeus-ferret 0.12.7 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +101 -19
  3. data/README.md +85 -13
  4. data/ext/isomorfeus_ferret_ext/bm_bitvector.c +22 -30
  5. data/ext/isomorfeus_ferret_ext/bm_hash.c +6 -12
  6. data/ext/isomorfeus_ferret_ext/bm_micro_string.c +3 -6
  7. data/ext/isomorfeus_ferret_ext/bm_store.c +11 -22
  8. data/ext/isomorfeus_ferret_ext/brotli_common_dictionary.c +1 -1
  9. data/ext/isomorfeus_ferret_ext/brotli_dec_decode.c +1 -1
  10. data/ext/isomorfeus_ferret_ext/bzlib.c +1572 -0
  11. data/ext/isomorfeus_ferret_ext/bzlib.h +282 -0
  12. data/ext/isomorfeus_ferret_ext/bzlib_blocksort.c +1094 -0
  13. data/ext/isomorfeus_ferret_ext/bzlib_compress.c +672 -0
  14. data/ext/isomorfeus_ferret_ext/bzlib_crctable.c +104 -0
  15. data/ext/isomorfeus_ferret_ext/bzlib_decompress.c +652 -0
  16. data/ext/isomorfeus_ferret_ext/bzlib_huffman.c +205 -0
  17. data/ext/isomorfeus_ferret_ext/bzlib_private.h +509 -0
  18. data/ext/isomorfeus_ferret_ext/bzlib_randtable.c +84 -0
  19. data/ext/isomorfeus_ferret_ext/fio_tmpfile.h +53 -53
  20. data/ext/isomorfeus_ferret_ext/frb_analysis.c +785 -1192
  21. data/ext/isomorfeus_ferret_ext/frb_index.c +497 -495
  22. data/ext/isomorfeus_ferret_ext/frb_qparser.c +48 -60
  23. data/ext/isomorfeus_ferret_ext/frb_search.c +1520 -1002
  24. data/ext/isomorfeus_ferret_ext/frb_store.c +96 -96
  25. data/ext/isomorfeus_ferret_ext/frb_threading.h +0 -1
  26. data/ext/isomorfeus_ferret_ext/frb_utils.c +147 -196
  27. data/ext/isomorfeus_ferret_ext/frt_analysis.c +695 -1090
  28. data/ext/isomorfeus_ferret_ext/frt_analysis.h +174 -170
  29. data/ext/isomorfeus_ferret_ext/frt_array.c +2 -4
  30. data/ext/isomorfeus_ferret_ext/frt_bitvector.c +9 -16
  31. data/ext/isomorfeus_ferret_ext/frt_bitvector.h +32 -81
  32. data/ext/isomorfeus_ferret_ext/frt_document.c +15 -20
  33. data/ext/isomorfeus_ferret_ext/frt_document.h +10 -10
  34. data/ext/isomorfeus_ferret_ext/frt_except.c +5 -12
  35. data/ext/isomorfeus_ferret_ext/frt_field_index.c +3 -3
  36. data/ext/isomorfeus_ferret_ext/frt_field_index.h +6 -7
  37. data/ext/isomorfeus_ferret_ext/frt_filter.c +35 -46
  38. data/ext/isomorfeus_ferret_ext/frt_fs_store.c +1 -0
  39. data/ext/isomorfeus_ferret_ext/frt_global.c +91 -200
  40. data/ext/isomorfeus_ferret_ext/frt_global.h +7 -18
  41. data/ext/isomorfeus_ferret_ext/frt_hash.c +1 -2
  42. data/ext/isomorfeus_ferret_ext/frt_ind.c +32 -35
  43. data/ext/isomorfeus_ferret_ext/frt_ind.h +9 -9
  44. data/ext/isomorfeus_ferret_ext/frt_index.c +603 -410
  45. data/ext/isomorfeus_ferret_ext/frt_index.h +272 -291
  46. data/ext/isomorfeus_ferret_ext/frt_lang.c +0 -2
  47. data/ext/isomorfeus_ferret_ext/frt_mempool.c +1 -2
  48. data/ext/isomorfeus_ferret_ext/frt_multimapper.c +4 -7
  49. data/ext/isomorfeus_ferret_ext/frt_q_boolean.c +68 -91
  50. data/ext/isomorfeus_ferret_ext/frt_q_const_score.c +35 -38
  51. data/ext/isomorfeus_ferret_ext/frt_q_filtered_query.c +53 -72
  52. data/ext/isomorfeus_ferret_ext/frt_q_fuzzy.c +25 -32
  53. data/ext/isomorfeus_ferret_ext/frt_q_match_all.c +21 -23
  54. data/ext/isomorfeus_ferret_ext/frt_q_multi_term.c +66 -103
  55. data/ext/isomorfeus_ferret_ext/frt_q_parser.c +207 -195
  56. data/ext/isomorfeus_ferret_ext/frt_q_phrase.c +20 -16
  57. data/ext/isomorfeus_ferret_ext/frt_q_prefix.c +17 -14
  58. data/ext/isomorfeus_ferret_ext/frt_q_range.c +102 -131
  59. data/ext/isomorfeus_ferret_ext/frt_q_span.c +179 -178
  60. data/ext/isomorfeus_ferret_ext/frt_q_term.c +47 -60
  61. data/ext/isomorfeus_ferret_ext/frt_q_wildcard.c +18 -16
  62. data/ext/isomorfeus_ferret_ext/frt_ram_store.c +45 -84
  63. data/ext/isomorfeus_ferret_ext/frt_search.c +105 -146
  64. data/ext/isomorfeus_ferret_ext/frt_search.h +331 -320
  65. data/ext/isomorfeus_ferret_ext/frt_similarity.c +5 -13
  66. data/ext/isomorfeus_ferret_ext/frt_similarity.h +7 -12
  67. data/ext/isomorfeus_ferret_ext/frt_sort.c +105 -149
  68. data/ext/isomorfeus_ferret_ext/frt_store.c +13 -7
  69. data/ext/isomorfeus_ferret_ext/frt_store.h +10 -2
  70. data/ext/isomorfeus_ferret_ext/frt_threading.h +0 -1
  71. data/ext/isomorfeus_ferret_ext/isomorfeus_ferret.c +22 -112
  72. data/ext/isomorfeus_ferret_ext/isomorfeus_ferret.h +2 -32
  73. data/ext/isomorfeus_ferret_ext/lz4.c +2495 -0
  74. data/ext/isomorfeus_ferret_ext/lz4.h +774 -0
  75. data/ext/isomorfeus_ferret_ext/lz4frame.c +1899 -0
  76. data/ext/isomorfeus_ferret_ext/lz4frame.h +623 -0
  77. data/ext/isomorfeus_ferret_ext/lz4hc.c +1615 -0
  78. data/ext/isomorfeus_ferret_ext/lz4hc.h +413 -0
  79. data/ext/isomorfeus_ferret_ext/lz4xxhash.c +1030 -0
  80. data/ext/isomorfeus_ferret_ext/lz4xxhash.h +328 -0
  81. data/ext/isomorfeus_ferret_ext/stem_modules.h +0 -86
  82. data/ext/isomorfeus_ferret_ext/test.c +0 -17
  83. data/ext/isomorfeus_ferret_ext/test_1710.c +11 -12
  84. data/ext/isomorfeus_ferret_ext/test_analysis.c +590 -583
  85. data/ext/isomorfeus_ferret_ext/test_compound_io.c +1 -1
  86. data/ext/isomorfeus_ferret_ext/test_document.c +19 -15
  87. data/ext/isomorfeus_ferret_ext/test_except.c +1 -2
  88. data/ext/isomorfeus_ferret_ext/test_fields.c +59 -60
  89. data/ext/isomorfeus_ferret_ext/test_file_deleter.c +10 -27
  90. data/ext/isomorfeus_ferret_ext/test_filter.c +11 -8
  91. data/ext/isomorfeus_ferret_ext/test_global.c +0 -46
  92. data/ext/isomorfeus_ferret_ext/test_hash.c +2 -2
  93. data/ext/isomorfeus_ferret_ext/test_hashset.c +1 -1
  94. data/ext/isomorfeus_ferret_ext/test_highlighter.c +15 -11
  95. data/ext/isomorfeus_ferret_ext/test_index.c +372 -365
  96. data/ext/isomorfeus_ferret_ext/test_q_const_score.c +5 -3
  97. data/ext/isomorfeus_ferret_ext/test_q_filtered.c +5 -3
  98. data/ext/isomorfeus_ferret_ext/test_q_fuzzy.c +13 -10
  99. data/ext/isomorfeus_ferret_ext/test_q_parser.c +45 -7
  100. data/ext/isomorfeus_ferret_ext/test_q_span.c +15 -12
  101. data/ext/isomorfeus_ferret_ext/test_ram_store.c +3 -3
  102. data/ext/isomorfeus_ferret_ext/test_search.c +60 -64
  103. data/ext/isomorfeus_ferret_ext/test_segments.c +5 -4
  104. data/ext/isomorfeus_ferret_ext/test_sort.c +17 -14
  105. data/ext/isomorfeus_ferret_ext/test_store.c +2 -0
  106. data/ext/isomorfeus_ferret_ext/test_term.c +3 -1
  107. data/ext/isomorfeus_ferret_ext/test_term_vectors.c +9 -10
  108. data/ext/isomorfeus_ferret_ext/test_test.c +1 -2
  109. data/ext/isomorfeus_ferret_ext/test_threading.c +9 -10
  110. data/ext/isomorfeus_ferret_ext/testhelper.c +1 -2
  111. data/lib/isomorfeus/ferret/version.rb +1 -1
  112. metadata +27 -57
  113. data/ext/isomorfeus_ferret_ext/email.rl +0 -21
  114. data/ext/isomorfeus_ferret_ext/frt_scanner.c +0 -900
  115. data/ext/isomorfeus_ferret_ext/frt_scanner.h +0 -28
  116. data/ext/isomorfeus_ferret_ext/frt_scanner_mb.c +0 -6706
  117. data/ext/isomorfeus_ferret_ext/frt_scanner_utf8.c +0 -4420
  118. data/ext/isomorfeus_ferret_ext/scanner.h +0 -28
  119. data/ext/isomorfeus_ferret_ext/scanner.in +0 -43
  120. data/ext/isomorfeus_ferret_ext/scanner.rl +0 -84
  121. data/ext/isomorfeus_ferret_ext/scanner_mb.rl +0 -200
  122. data/ext/isomorfeus_ferret_ext/scanner_utf8.rl +0 -85
  123. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_basque.c +0 -1167
  124. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_basque.h +0 -6
  125. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_catalan.c +0 -1433
  126. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_catalan.h +0 -6
  127. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.c +0 -301
  128. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.h +0 -6
  129. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.c +0 -590
  130. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.h +0 -6
  131. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.c +0 -1049
  132. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.h +0 -6
  133. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.c +0 -705
  134. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.h +0 -6
  135. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.c +0 -1239
  136. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.h +0 -6
  137. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.c +0 -477
  138. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.h +0 -6
  139. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_hungarian.c +0 -1217
  140. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_hungarian.h +0 -7
  141. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_indonesian.c +0 -394
  142. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_indonesian.h +0 -6
  143. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_irish.c +0 -457
  144. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_irish.h +0 -6
  145. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.c +0 -1009
  146. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.h +0 -6
  147. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.c +0 -259
  148. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.h +0 -6
  149. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.c +0 -704
  150. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.h +0 -6
  151. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.c +0 -948
  152. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.h +0 -6
  153. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.c +0 -1028
  154. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.h +0 -6
  155. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.c +0 -275
  156. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.h +0 -6
  157. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_hungarian.c +0 -849
  158. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_hungarian.h +0 -6
  159. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.c +0 -952
  160. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.h +0 -6
  161. data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.c +0 -669
  162. data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.h +0 -6
  163. data/ext/isomorfeus_ferret_ext/stem_modules.txt +0 -63
  164. data/ext/isomorfeus_ferret_ext/uchar-ucs4.rl +0 -1854
  165. data/ext/isomorfeus_ferret_ext/uchar-utf8.rl +0 -1999
  166. data/ext/isomorfeus_ferret_ext/url.rl +0 -27
@@ -1,1009 +0,0 @@
1
- /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
2
-
3
- #include "stem_header.h"
4
-
5
- extern int italian_ISO_8859_1_stem(struct SN_env * z);
6
-
7
- static int r_vowel_suffix(struct SN_env * z);
8
- static int r_verb_suffix(struct SN_env * z);
9
- static int r_standard_suffix(struct SN_env * z);
10
- static int r_attached_pronoun(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 * italian_ISO_8859_1_create_env(void);
19
- extern void italian_ISO_8859_1_close_env(struct SN_env * z);
20
-
21
- static const symbol s_0_1[2] = { 'q', 'u' };
22
- static const symbol s_0_2[1] = { 0xE1 };
23
- static const symbol s_0_3[1] = { 0xE9 };
24
- static const symbol s_0_4[1] = { 0xED };
25
- static const symbol s_0_5[1] = { 0xF3 };
26
- static const symbol s_0_6[1] = { 0xFA };
27
-
28
- static const struct among a_0[7] =
29
- {
30
- { 0, 0, -1, 7, 0},
31
- { 2, s_0_1, 0, 6, 0},
32
- { 1, s_0_2, 0, 1, 0},
33
- { 1, s_0_3, 0, 2, 0},
34
- { 1, s_0_4, 0, 3, 0},
35
- { 1, s_0_5, 0, 4, 0},
36
- { 1, s_0_6, 0, 5, 0}
37
- };
38
-
39
- static const symbol s_1_1[1] = { 'I' };
40
- static const symbol s_1_2[1] = { 'U' };
41
-
42
- static const struct among a_1[3] =
43
- {
44
- { 0, 0, -1, 3, 0},
45
- { 1, s_1_1, 0, 1, 0},
46
- { 1, s_1_2, 0, 2, 0}
47
- };
48
-
49
- static const symbol s_2_0[2] = { 'l', 'a' };
50
- static const symbol s_2_1[4] = { 'c', 'e', 'l', 'a' };
51
- static const symbol s_2_2[6] = { 'g', 'l', 'i', 'e', 'l', 'a' };
52
- static const symbol s_2_3[4] = { 'm', 'e', 'l', 'a' };
53
- static const symbol s_2_4[4] = { 't', 'e', 'l', 'a' };
54
- static const symbol s_2_5[4] = { 'v', 'e', 'l', 'a' };
55
- static const symbol s_2_6[2] = { 'l', 'e' };
56
- static const symbol s_2_7[4] = { 'c', 'e', 'l', 'e' };
57
- static const symbol s_2_8[6] = { 'g', 'l', 'i', 'e', 'l', 'e' };
58
- static const symbol s_2_9[4] = { 'm', 'e', 'l', 'e' };
59
- static const symbol s_2_10[4] = { 't', 'e', 'l', 'e' };
60
- static const symbol s_2_11[4] = { 'v', 'e', 'l', 'e' };
61
- static const symbol s_2_12[2] = { 'n', 'e' };
62
- static const symbol s_2_13[4] = { 'c', 'e', 'n', 'e' };
63
- static const symbol s_2_14[6] = { 'g', 'l', 'i', 'e', 'n', 'e' };
64
- static const symbol s_2_15[4] = { 'm', 'e', 'n', 'e' };
65
- static const symbol s_2_16[4] = { 's', 'e', 'n', 'e' };
66
- static const symbol s_2_17[4] = { 't', 'e', 'n', 'e' };
67
- static const symbol s_2_18[4] = { 'v', 'e', 'n', 'e' };
68
- static const symbol s_2_19[2] = { 'c', 'i' };
69
- static const symbol s_2_20[2] = { 'l', 'i' };
70
- static const symbol s_2_21[4] = { 'c', 'e', 'l', 'i' };
71
- static const symbol s_2_22[6] = { 'g', 'l', 'i', 'e', 'l', 'i' };
72
- static const symbol s_2_23[4] = { 'm', 'e', 'l', 'i' };
73
- static const symbol s_2_24[4] = { 't', 'e', 'l', 'i' };
74
- static const symbol s_2_25[4] = { 'v', 'e', 'l', 'i' };
75
- static const symbol s_2_26[3] = { 'g', 'l', 'i' };
76
- static const symbol s_2_27[2] = { 'm', 'i' };
77
- static const symbol s_2_28[2] = { 's', 'i' };
78
- static const symbol s_2_29[2] = { 't', 'i' };
79
- static const symbol s_2_30[2] = { 'v', 'i' };
80
- static const symbol s_2_31[2] = { 'l', 'o' };
81
- static const symbol s_2_32[4] = { 'c', 'e', 'l', 'o' };
82
- static const symbol s_2_33[6] = { 'g', 'l', 'i', 'e', 'l', 'o' };
83
- static const symbol s_2_34[4] = { 'm', 'e', 'l', 'o' };
84
- static const symbol s_2_35[4] = { 't', 'e', 'l', 'o' };
85
- static const symbol s_2_36[4] = { 'v', 'e', 'l', 'o' };
86
-
87
- static const struct among a_2[37] =
88
- {
89
- { 2, s_2_0, -1, -1, 0},
90
- { 4, s_2_1, 0, -1, 0},
91
- { 6, s_2_2, 0, -1, 0},
92
- { 4, s_2_3, 0, -1, 0},
93
- { 4, s_2_4, 0, -1, 0},
94
- { 4, s_2_5, 0, -1, 0},
95
- { 2, s_2_6, -1, -1, 0},
96
- { 4, s_2_7, 6, -1, 0},
97
- { 6, s_2_8, 6, -1, 0},
98
- { 4, s_2_9, 6, -1, 0},
99
- { 4, s_2_10, 6, -1, 0},
100
- { 4, s_2_11, 6, -1, 0},
101
- { 2, s_2_12, -1, -1, 0},
102
- { 4, s_2_13, 12, -1, 0},
103
- { 6, s_2_14, 12, -1, 0},
104
- { 4, s_2_15, 12, -1, 0},
105
- { 4, s_2_16, 12, -1, 0},
106
- { 4, s_2_17, 12, -1, 0},
107
- { 4, s_2_18, 12, -1, 0},
108
- { 2, s_2_19, -1, -1, 0},
109
- { 2, s_2_20, -1, -1, 0},
110
- { 4, s_2_21, 20, -1, 0},
111
- { 6, s_2_22, 20, -1, 0},
112
- { 4, s_2_23, 20, -1, 0},
113
- { 4, s_2_24, 20, -1, 0},
114
- { 4, s_2_25, 20, -1, 0},
115
- { 3, s_2_26, 20, -1, 0},
116
- { 2, s_2_27, -1, -1, 0},
117
- { 2, s_2_28, -1, -1, 0},
118
- { 2, s_2_29, -1, -1, 0},
119
- { 2, s_2_30, -1, -1, 0},
120
- { 2, s_2_31, -1, -1, 0},
121
- { 4, s_2_32, 31, -1, 0},
122
- { 6, s_2_33, 31, -1, 0},
123
- { 4, s_2_34, 31, -1, 0},
124
- { 4, s_2_35, 31, -1, 0},
125
- { 4, s_2_36, 31, -1, 0}
126
- };
127
-
128
- static const symbol s_3_0[4] = { 'a', 'n', 'd', 'o' };
129
- static const symbol s_3_1[4] = { 'e', 'n', 'd', 'o' };
130
- static const symbol s_3_2[2] = { 'a', 'r' };
131
- static const symbol s_3_3[2] = { 'e', 'r' };
132
- static const symbol s_3_4[2] = { 'i', 'r' };
133
-
134
- static const struct among a_3[5] =
135
- {
136
- { 4, s_3_0, -1, 1, 0},
137
- { 4, s_3_1, -1, 1, 0},
138
- { 2, s_3_2, -1, 2, 0},
139
- { 2, s_3_3, -1, 2, 0},
140
- { 2, s_3_4, -1, 2, 0}
141
- };
142
-
143
- static const symbol s_4_0[2] = { 'i', 'c' };
144
- static const symbol s_4_1[4] = { 'a', 'b', 'i', 'l' };
145
- static const symbol s_4_2[2] = { 'o', 's' };
146
- static const symbol s_4_3[2] = { 'i', 'v' };
147
-
148
- static const struct among a_4[4] =
149
- {
150
- { 2, s_4_0, -1, -1, 0},
151
- { 4, s_4_1, -1, -1, 0},
152
- { 2, s_4_2, -1, -1, 0},
153
- { 2, s_4_3, -1, 1, 0}
154
- };
155
-
156
- static const symbol s_5_0[2] = { 'i', 'c' };
157
- static const symbol s_5_1[4] = { 'a', 'b', 'i', 'l' };
158
- static const symbol s_5_2[2] = { 'i', 'v' };
159
-
160
- static const struct among a_5[3] =
161
- {
162
- { 2, s_5_0, -1, 1, 0},
163
- { 4, s_5_1, -1, 1, 0},
164
- { 2, s_5_2, -1, 1, 0}
165
- };
166
-
167
- static const symbol s_6_0[3] = { 'i', 'c', 'a' };
168
- static const symbol s_6_1[5] = { 'l', 'o', 'g', 'i', 'a' };
169
- static const symbol s_6_2[3] = { 'o', 's', 'a' };
170
- static const symbol s_6_3[4] = { 'i', 's', 't', 'a' };
171
- static const symbol s_6_4[3] = { 'i', 'v', 'a' };
172
- static const symbol s_6_5[4] = { 'a', 'n', 'z', 'a' };
173
- static const symbol s_6_6[4] = { 'e', 'n', 'z', 'a' };
174
- static const symbol s_6_7[3] = { 'i', 'c', 'e' };
175
- static const symbol s_6_8[6] = { 'a', 't', 'r', 'i', 'c', 'e' };
176
- static const symbol s_6_9[4] = { 'i', 'c', 'h', 'e' };
177
- static const symbol s_6_10[5] = { 'l', 'o', 'g', 'i', 'e' };
178
- static const symbol s_6_11[5] = { 'a', 'b', 'i', 'l', 'e' };
179
- static const symbol s_6_12[5] = { 'i', 'b', 'i', 'l', 'e' };
180
- static const symbol s_6_13[6] = { 'u', 's', 'i', 'o', 'n', 'e' };
181
- static const symbol s_6_14[6] = { 'a', 'z', 'i', 'o', 'n', 'e' };
182
- static const symbol s_6_15[6] = { 'u', 'z', 'i', 'o', 'n', 'e' };
183
- static const symbol s_6_16[5] = { 'a', 't', 'o', 'r', 'e' };
184
- static const symbol s_6_17[3] = { 'o', 's', 'e' };
185
- static const symbol s_6_18[4] = { 'a', 'n', 't', 'e' };
186
- static const symbol s_6_19[5] = { 'm', 'e', 'n', 't', 'e' };
187
- static const symbol s_6_20[6] = { 'a', 'm', 'e', 'n', 't', 'e' };
188
- static const symbol s_6_21[4] = { 'i', 's', 't', 'e' };
189
- static const symbol s_6_22[3] = { 'i', 'v', 'e' };
190
- static const symbol s_6_23[4] = { 'a', 'n', 'z', 'e' };
191
- static const symbol s_6_24[4] = { 'e', 'n', 'z', 'e' };
192
- static const symbol s_6_25[3] = { 'i', 'c', 'i' };
193
- static const symbol s_6_26[6] = { 'a', 't', 'r', 'i', 'c', 'i' };
194
- static const symbol s_6_27[4] = { 'i', 'c', 'h', 'i' };
195
- static const symbol s_6_28[5] = { 'a', 'b', 'i', 'l', 'i' };
196
- static const symbol s_6_29[5] = { 'i', 'b', 'i', 'l', 'i' };
197
- static const symbol s_6_30[4] = { 'i', 's', 'm', 'i' };
198
- static const symbol s_6_31[6] = { 'u', 's', 'i', 'o', 'n', 'i' };
199
- static const symbol s_6_32[6] = { 'a', 'z', 'i', 'o', 'n', 'i' };
200
- static const symbol s_6_33[6] = { 'u', 'z', 'i', 'o', 'n', 'i' };
201
- static const symbol s_6_34[5] = { 'a', 't', 'o', 'r', 'i' };
202
- static const symbol s_6_35[3] = { 'o', 's', 'i' };
203
- static const symbol s_6_36[4] = { 'a', 'n', 't', 'i' };
204
- static const symbol s_6_37[6] = { 'a', 'm', 'e', 'n', 't', 'i' };
205
- static const symbol s_6_38[6] = { 'i', 'm', 'e', 'n', 't', 'i' };
206
- static const symbol s_6_39[4] = { 'i', 's', 't', 'i' };
207
- static const symbol s_6_40[3] = { 'i', 'v', 'i' };
208
- static const symbol s_6_41[3] = { 'i', 'c', 'o' };
209
- static const symbol s_6_42[4] = { 'i', 's', 'm', 'o' };
210
- static const symbol s_6_43[3] = { 'o', 's', 'o' };
211
- static const symbol s_6_44[6] = { 'a', 'm', 'e', 'n', 't', 'o' };
212
- static const symbol s_6_45[6] = { 'i', 'm', 'e', 'n', 't', 'o' };
213
- static const symbol s_6_46[3] = { 'i', 'v', 'o' };
214
- static const symbol s_6_47[3] = { 'i', 't', 0xE0 };
215
- static const symbol s_6_48[4] = { 'i', 's', 't', 0xE0 };
216
- static const symbol s_6_49[4] = { 'i', 's', 't', 0xE8 };
217
- static const symbol s_6_50[4] = { 'i', 's', 't', 0xEC };
218
-
219
- static const struct among a_6[51] =
220
- {
221
- { 3, s_6_0, -1, 1, 0},
222
- { 5, s_6_1, -1, 3, 0},
223
- { 3, s_6_2, -1, 1, 0},
224
- { 4, s_6_3, -1, 1, 0},
225
- { 3, s_6_4, -1, 9, 0},
226
- { 4, s_6_5, -1, 1, 0},
227
- { 4, s_6_6, -1, 5, 0},
228
- { 3, s_6_7, -1, 1, 0},
229
- { 6, s_6_8, 7, 1, 0},
230
- { 4, s_6_9, -1, 1, 0},
231
- { 5, s_6_10, -1, 3, 0},
232
- { 5, s_6_11, -1, 1, 0},
233
- { 5, s_6_12, -1, 1, 0},
234
- { 6, s_6_13, -1, 4, 0},
235
- { 6, s_6_14, -1, 2, 0},
236
- { 6, s_6_15, -1, 4, 0},
237
- { 5, s_6_16, -1, 2, 0},
238
- { 3, s_6_17, -1, 1, 0},
239
- { 4, s_6_18, -1, 1, 0},
240
- { 5, s_6_19, -1, 1, 0},
241
- { 6, s_6_20, 19, 7, 0},
242
- { 4, s_6_21, -1, 1, 0},
243
- { 3, s_6_22, -1, 9, 0},
244
- { 4, s_6_23, -1, 1, 0},
245
- { 4, s_6_24, -1, 5, 0},
246
- { 3, s_6_25, -1, 1, 0},
247
- { 6, s_6_26, 25, 1, 0},
248
- { 4, s_6_27, -1, 1, 0},
249
- { 5, s_6_28, -1, 1, 0},
250
- { 5, s_6_29, -1, 1, 0},
251
- { 4, s_6_30, -1, 1, 0},
252
- { 6, s_6_31, -1, 4, 0},
253
- { 6, s_6_32, -1, 2, 0},
254
- { 6, s_6_33, -1, 4, 0},
255
- { 5, s_6_34, -1, 2, 0},
256
- { 3, s_6_35, -1, 1, 0},
257
- { 4, s_6_36, -1, 1, 0},
258
- { 6, s_6_37, -1, 6, 0},
259
- { 6, s_6_38, -1, 6, 0},
260
- { 4, s_6_39, -1, 1, 0},
261
- { 3, s_6_40, -1, 9, 0},
262
- { 3, s_6_41, -1, 1, 0},
263
- { 4, s_6_42, -1, 1, 0},
264
- { 3, s_6_43, -1, 1, 0},
265
- { 6, s_6_44, -1, 6, 0},
266
- { 6, s_6_45, -1, 6, 0},
267
- { 3, s_6_46, -1, 9, 0},
268
- { 3, s_6_47, -1, 8, 0},
269
- { 4, s_6_48, -1, 1, 0},
270
- { 4, s_6_49, -1, 1, 0},
271
- { 4, s_6_50, -1, 1, 0}
272
- };
273
-
274
- static const symbol s_7_0[4] = { 'i', 's', 'c', 'a' };
275
- static const symbol s_7_1[4] = { 'e', 'n', 'd', 'a' };
276
- static const symbol s_7_2[3] = { 'a', 't', 'a' };
277
- static const symbol s_7_3[3] = { 'i', 't', 'a' };
278
- static const symbol s_7_4[3] = { 'u', 't', 'a' };
279
- static const symbol s_7_5[3] = { 'a', 'v', 'a' };
280
- static const symbol s_7_6[3] = { 'e', 'v', 'a' };
281
- static const symbol s_7_7[3] = { 'i', 'v', 'a' };
282
- static const symbol s_7_8[6] = { 'e', 'r', 'e', 'b', 'b', 'e' };
283
- static const symbol s_7_9[6] = { 'i', 'r', 'e', 'b', 'b', 'e' };
284
- static const symbol s_7_10[4] = { 'i', 's', 'c', 'e' };
285
- static const symbol s_7_11[4] = { 'e', 'n', 'd', 'e' };
286
- static const symbol s_7_12[3] = { 'a', 'r', 'e' };
287
- static const symbol s_7_13[3] = { 'e', 'r', 'e' };
288
- static const symbol s_7_14[3] = { 'i', 'r', 'e' };
289
- static const symbol s_7_15[4] = { 'a', 's', 's', 'e' };
290
- static const symbol s_7_16[3] = { 'a', 't', 'e' };
291
- static const symbol s_7_17[5] = { 'a', 'v', 'a', 't', 'e' };
292
- static const symbol s_7_18[5] = { 'e', 'v', 'a', 't', 'e' };
293
- static const symbol s_7_19[5] = { 'i', 'v', 'a', 't', 'e' };
294
- static const symbol s_7_20[3] = { 'e', 't', 'e' };
295
- static const symbol s_7_21[5] = { 'e', 'r', 'e', 't', 'e' };
296
- static const symbol s_7_22[5] = { 'i', 'r', 'e', 't', 'e' };
297
- static const symbol s_7_23[3] = { 'i', 't', 'e' };
298
- static const symbol s_7_24[6] = { 'e', 'r', 'e', 's', 't', 'e' };
299
- static const symbol s_7_25[6] = { 'i', 'r', 'e', 's', 't', 'e' };
300
- static const symbol s_7_26[3] = { 'u', 't', 'e' };
301
- static const symbol s_7_27[4] = { 'e', 'r', 'a', 'i' };
302
- static const symbol s_7_28[4] = { 'i', 'r', 'a', 'i' };
303
- static const symbol s_7_29[4] = { 'i', 's', 'c', 'i' };
304
- static const symbol s_7_30[4] = { 'e', 'n', 'd', 'i' };
305
- static const symbol s_7_31[4] = { 'e', 'r', 'e', 'i' };
306
- static const symbol s_7_32[4] = { 'i', 'r', 'e', 'i' };
307
- static const symbol s_7_33[4] = { 'a', 's', 's', 'i' };
308
- static const symbol s_7_34[3] = { 'a', 't', 'i' };
309
- static const symbol s_7_35[3] = { 'i', 't', 'i' };
310
- static const symbol s_7_36[6] = { 'e', 'r', 'e', 's', 't', 'i' };
311
- static const symbol s_7_37[6] = { 'i', 'r', 'e', 's', 't', 'i' };
312
- static const symbol s_7_38[3] = { 'u', 't', 'i' };
313
- static const symbol s_7_39[3] = { 'a', 'v', 'i' };
314
- static const symbol s_7_40[3] = { 'e', 'v', 'i' };
315
- static const symbol s_7_41[3] = { 'i', 'v', 'i' };
316
- static const symbol s_7_42[4] = { 'i', 's', 'c', 'o' };
317
- static const symbol s_7_43[4] = { 'a', 'n', 'd', 'o' };
318
- static const symbol s_7_44[4] = { 'e', 'n', 'd', 'o' };
319
- static const symbol s_7_45[4] = { 'Y', 'a', 'm', 'o' };
320
- static const symbol s_7_46[4] = { 'i', 'a', 'm', 'o' };
321
- static const symbol s_7_47[5] = { 'a', 'v', 'a', 'm', 'o' };
322
- static const symbol s_7_48[5] = { 'e', 'v', 'a', 'm', 'o' };
323
- static const symbol s_7_49[5] = { 'i', 'v', 'a', 'm', 'o' };
324
- static const symbol s_7_50[5] = { 'e', 'r', 'e', 'm', 'o' };
325
- static const symbol s_7_51[5] = { 'i', 'r', 'e', 'm', 'o' };
326
- static const symbol s_7_52[6] = { 'a', 's', 's', 'i', 'm', 'o' };
327
- static const symbol s_7_53[4] = { 'a', 'm', 'm', 'o' };
328
- static const symbol s_7_54[4] = { 'e', 'm', 'm', 'o' };
329
- static const symbol s_7_55[6] = { 'e', 'r', 'e', 'm', 'm', 'o' };
330
- static const symbol s_7_56[6] = { 'i', 'r', 'e', 'm', 'm', 'o' };
331
- static const symbol s_7_57[4] = { 'i', 'm', 'm', 'o' };
332
- static const symbol s_7_58[3] = { 'a', 'n', 'o' };
333
- static const symbol s_7_59[6] = { 'i', 's', 'c', 'a', 'n', 'o' };
334
- static const symbol s_7_60[5] = { 'a', 'v', 'a', 'n', 'o' };
335
- static const symbol s_7_61[5] = { 'e', 'v', 'a', 'n', 'o' };
336
- static const symbol s_7_62[5] = { 'i', 'v', 'a', 'n', 'o' };
337
- static const symbol s_7_63[6] = { 'e', 'r', 'a', 'n', 'n', 'o' };
338
- static const symbol s_7_64[6] = { 'i', 'r', 'a', 'n', 'n', 'o' };
339
- static const symbol s_7_65[3] = { 'o', 'n', 'o' };
340
- static const symbol s_7_66[6] = { 'i', 's', 'c', 'o', 'n', 'o' };
341
- static const symbol s_7_67[5] = { 'a', 'r', 'o', 'n', 'o' };
342
- static const symbol s_7_68[5] = { 'e', 'r', 'o', 'n', 'o' };
343
- static const symbol s_7_69[5] = { 'i', 'r', 'o', 'n', 'o' };
344
- static const symbol s_7_70[8] = { 'e', 'r', 'e', 'b', 'b', 'e', 'r', 'o' };
345
- static const symbol s_7_71[8] = { 'i', 'r', 'e', 'b', 'b', 'e', 'r', 'o' };
346
- static const symbol s_7_72[6] = { 'a', 's', 's', 'e', 'r', 'o' };
347
- static const symbol s_7_73[6] = { 'e', 's', 's', 'e', 'r', 'o' };
348
- static const symbol s_7_74[6] = { 'i', 's', 's', 'e', 'r', 'o' };
349
- static const symbol s_7_75[3] = { 'a', 't', 'o' };
350
- static const symbol s_7_76[3] = { 'i', 't', 'o' };
351
- static const symbol s_7_77[3] = { 'u', 't', 'o' };
352
- static const symbol s_7_78[3] = { 'a', 'v', 'o' };
353
- static const symbol s_7_79[3] = { 'e', 'v', 'o' };
354
- static const symbol s_7_80[3] = { 'i', 'v', 'o' };
355
- static const symbol s_7_81[2] = { 'a', 'r' };
356
- static const symbol s_7_82[2] = { 'i', 'r' };
357
- static const symbol s_7_83[3] = { 'e', 'r', 0xE0 };
358
- static const symbol s_7_84[3] = { 'i', 'r', 0xE0 };
359
- static const symbol s_7_85[3] = { 'e', 'r', 0xF2 };
360
- static const symbol s_7_86[3] = { 'i', 'r', 0xF2 };
361
-
362
- static const struct among a_7[87] =
363
- {
364
- { 4, s_7_0, -1, 1, 0},
365
- { 4, s_7_1, -1, 1, 0},
366
- { 3, s_7_2, -1, 1, 0},
367
- { 3, s_7_3, -1, 1, 0},
368
- { 3, s_7_4, -1, 1, 0},
369
- { 3, s_7_5, -1, 1, 0},
370
- { 3, s_7_6, -1, 1, 0},
371
- { 3, s_7_7, -1, 1, 0},
372
- { 6, s_7_8, -1, 1, 0},
373
- { 6, s_7_9, -1, 1, 0},
374
- { 4, s_7_10, -1, 1, 0},
375
- { 4, s_7_11, -1, 1, 0},
376
- { 3, s_7_12, -1, 1, 0},
377
- { 3, s_7_13, -1, 1, 0},
378
- { 3, s_7_14, -1, 1, 0},
379
- { 4, s_7_15, -1, 1, 0},
380
- { 3, s_7_16, -1, 1, 0},
381
- { 5, s_7_17, 16, 1, 0},
382
- { 5, s_7_18, 16, 1, 0},
383
- { 5, s_7_19, 16, 1, 0},
384
- { 3, s_7_20, -1, 1, 0},
385
- { 5, s_7_21, 20, 1, 0},
386
- { 5, s_7_22, 20, 1, 0},
387
- { 3, s_7_23, -1, 1, 0},
388
- { 6, s_7_24, -1, 1, 0},
389
- { 6, s_7_25, -1, 1, 0},
390
- { 3, s_7_26, -1, 1, 0},
391
- { 4, s_7_27, -1, 1, 0},
392
- { 4, s_7_28, -1, 1, 0},
393
- { 4, s_7_29, -1, 1, 0},
394
- { 4, s_7_30, -1, 1, 0},
395
- { 4, s_7_31, -1, 1, 0},
396
- { 4, s_7_32, -1, 1, 0},
397
- { 4, s_7_33, -1, 1, 0},
398
- { 3, s_7_34, -1, 1, 0},
399
- { 3, s_7_35, -1, 1, 0},
400
- { 6, s_7_36, -1, 1, 0},
401
- { 6, s_7_37, -1, 1, 0},
402
- { 3, s_7_38, -1, 1, 0},
403
- { 3, s_7_39, -1, 1, 0},
404
- { 3, s_7_40, -1, 1, 0},
405
- { 3, s_7_41, -1, 1, 0},
406
- { 4, s_7_42, -1, 1, 0},
407
- { 4, s_7_43, -1, 1, 0},
408
- { 4, s_7_44, -1, 1, 0},
409
- { 4, s_7_45, -1, 1, 0},
410
- { 4, s_7_46, -1, 1, 0},
411
- { 5, s_7_47, -1, 1, 0},
412
- { 5, s_7_48, -1, 1, 0},
413
- { 5, s_7_49, -1, 1, 0},
414
- { 5, s_7_50, -1, 1, 0},
415
- { 5, s_7_51, -1, 1, 0},
416
- { 6, s_7_52, -1, 1, 0},
417
- { 4, s_7_53, -1, 1, 0},
418
- { 4, s_7_54, -1, 1, 0},
419
- { 6, s_7_55, 54, 1, 0},
420
- { 6, s_7_56, 54, 1, 0},
421
- { 4, s_7_57, -1, 1, 0},
422
- { 3, s_7_58, -1, 1, 0},
423
- { 6, s_7_59, 58, 1, 0},
424
- { 5, s_7_60, 58, 1, 0},
425
- { 5, s_7_61, 58, 1, 0},
426
- { 5, s_7_62, 58, 1, 0},
427
- { 6, s_7_63, -1, 1, 0},
428
- { 6, s_7_64, -1, 1, 0},
429
- { 3, s_7_65, -1, 1, 0},
430
- { 6, s_7_66, 65, 1, 0},
431
- { 5, s_7_67, 65, 1, 0},
432
- { 5, s_7_68, 65, 1, 0},
433
- { 5, s_7_69, 65, 1, 0},
434
- { 8, s_7_70, -1, 1, 0},
435
- { 8, s_7_71, -1, 1, 0},
436
- { 6, s_7_72, -1, 1, 0},
437
- { 6, s_7_73, -1, 1, 0},
438
- { 6, s_7_74, -1, 1, 0},
439
- { 3, s_7_75, -1, 1, 0},
440
- { 3, s_7_76, -1, 1, 0},
441
- { 3, s_7_77, -1, 1, 0},
442
- { 3, s_7_78, -1, 1, 0},
443
- { 3, s_7_79, -1, 1, 0},
444
- { 3, s_7_80, -1, 1, 0},
445
- { 2, s_7_81, -1, 1, 0},
446
- { 2, s_7_82, -1, 1, 0},
447
- { 3, s_7_83, -1, 1, 0},
448
- { 3, s_7_84, -1, 1, 0},
449
- { 3, s_7_85, -1, 1, 0},
450
- { 3, s_7_86, -1, 1, 0}
451
- };
452
-
453
- static const unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 128, 8, 2, 1 };
454
-
455
- static const unsigned char g_AEIO[] = { 17, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 128, 8, 2 };
456
-
457
- static const unsigned char g_CG[] = { 17 };
458
-
459
- static const symbol s_0[] = { 0xE0 };
460
- static const symbol s_1[] = { 0xE8 };
461
- static const symbol s_2[] = { 0xEC };
462
- static const symbol s_3[] = { 0xF2 };
463
- static const symbol s_4[] = { 0xF9 };
464
- static const symbol s_5[] = { 'q', 'U' };
465
- static const symbol s_6[] = { 'U' };
466
- static const symbol s_7[] = { 'I' };
467
- static const symbol s_8[] = { 'i' };
468
- static const symbol s_9[] = { 'u' };
469
- static const symbol s_10[] = { 'e' };
470
- static const symbol s_11[] = { 'i', 'c' };
471
- static const symbol s_12[] = { 'l', 'o', 'g' };
472
- static const symbol s_13[] = { 'u' };
473
- static const symbol s_14[] = { 'e', 'n', 't', 'e' };
474
- static const symbol s_15[] = { 'a', 't' };
475
- static const symbol s_16[] = { 'a', 't' };
476
- static const symbol s_17[] = { 'i', 'c' };
477
-
478
- static int r_prelude(struct SN_env * z) {
479
- int among_var;
480
- { int c_test1 = z->c;
481
- while(1) {
482
- int c2 = z->c;
483
- z->bra = z->c;
484
- among_var = find_among(z, a_0, 7);
485
- if (!(among_var)) goto lab0;
486
- z->ket = z->c;
487
- switch (among_var) {
488
- case 1:
489
- { int ret = slice_from_s(z, 1, s_0);
490
- if (ret < 0) return ret;
491
- }
492
- break;
493
- case 2:
494
- { int ret = slice_from_s(z, 1, s_1);
495
- if (ret < 0) return ret;
496
- }
497
- break;
498
- case 3:
499
- { int ret = slice_from_s(z, 1, s_2);
500
- if (ret < 0) return ret;
501
- }
502
- break;
503
- case 4:
504
- { int ret = slice_from_s(z, 1, s_3);
505
- if (ret < 0) return ret;
506
- }
507
- break;
508
- case 5:
509
- { int ret = slice_from_s(z, 1, s_4);
510
- if (ret < 0) return ret;
511
- }
512
- break;
513
- case 6:
514
- { int ret = slice_from_s(z, 2, s_5);
515
- if (ret < 0) return ret;
516
- }
517
- break;
518
- case 7:
519
- if (z->c >= z->l) goto lab0;
520
- z->c++;
521
- break;
522
- }
523
- continue;
524
- lab0:
525
- z->c = c2;
526
- break;
527
- }
528
- z->c = c_test1;
529
- }
530
- while(1) {
531
- int c3 = z->c;
532
- while(1) {
533
- int c4 = z->c;
534
- if (in_grouping(z, g_v, 97, 249, 0)) goto lab2;
535
- z->bra = z->c;
536
- { int c5 = z->c;
537
- if (z->c == z->l || z->p[z->c] != 'u') goto lab4;
538
- z->c++;
539
- z->ket = z->c;
540
- if (in_grouping(z, g_v, 97, 249, 0)) goto lab4;
541
- { int ret = slice_from_s(z, 1, s_6);
542
- if (ret < 0) return ret;
543
- }
544
- goto lab3;
545
- lab4:
546
- z->c = c5;
547
- if (z->c == z->l || z->p[z->c] != 'i') goto lab2;
548
- z->c++;
549
- z->ket = z->c;
550
- if (in_grouping(z, g_v, 97, 249, 0)) goto lab2;
551
- { int ret = slice_from_s(z, 1, s_7);
552
- if (ret < 0) return ret;
553
- }
554
- }
555
- lab3:
556
- z->c = c4;
557
- break;
558
- lab2:
559
- z->c = c4;
560
- if (z->c >= z->l) goto lab1;
561
- z->c++;
562
- }
563
- continue;
564
- lab1:
565
- z->c = c3;
566
- break;
567
- }
568
- return 1;
569
- }
570
-
571
- static int r_mark_regions(struct SN_env * z) {
572
- z->I[2] = z->l;
573
- z->I[1] = z->l;
574
- z->I[0] = z->l;
575
- { int c1 = z->c;
576
- { int c2 = z->c;
577
- if (in_grouping(z, g_v, 97, 249, 0)) goto lab2;
578
- { int c3 = z->c;
579
- if (out_grouping(z, g_v, 97, 249, 0)) goto lab4;
580
- {
581
- int ret = out_grouping(z, g_v, 97, 249, 1);
582
- if (ret < 0) goto lab4;
583
- z->c += ret;
584
- }
585
- goto lab3;
586
- lab4:
587
- z->c = c3;
588
- if (in_grouping(z, g_v, 97, 249, 0)) goto lab2;
589
- {
590
- int ret = in_grouping(z, g_v, 97, 249, 1);
591
- if (ret < 0) goto lab2;
592
- z->c += ret;
593
- }
594
- }
595
- lab3:
596
- goto lab1;
597
- lab2:
598
- z->c = c2;
599
- if (out_grouping(z, g_v, 97, 249, 0)) goto lab0;
600
- { int c4 = z->c;
601
- if (out_grouping(z, g_v, 97, 249, 0)) goto lab6;
602
- {
603
- int ret = out_grouping(z, g_v, 97, 249, 1);
604
- if (ret < 0) goto lab6;
605
- z->c += ret;
606
- }
607
- goto lab5;
608
- lab6:
609
- z->c = c4;
610
- if (in_grouping(z, g_v, 97, 249, 0)) goto lab0;
611
- if (z->c >= z->l) goto lab0;
612
- z->c++;
613
- }
614
- lab5:
615
- ;
616
- }
617
- lab1:
618
- z->I[2] = z->c;
619
- lab0:
620
- z->c = c1;
621
- }
622
- { int c5 = z->c;
623
- {
624
- int ret = out_grouping(z, g_v, 97, 249, 1);
625
- if (ret < 0) goto lab7;
626
- z->c += ret;
627
- }
628
- {
629
- int ret = in_grouping(z, g_v, 97, 249, 1);
630
- if (ret < 0) goto lab7;
631
- z->c += ret;
632
- }
633
- z->I[1] = z->c;
634
- {
635
- int ret = out_grouping(z, g_v, 97, 249, 1);
636
- if (ret < 0) goto lab7;
637
- z->c += ret;
638
- }
639
- {
640
- int ret = in_grouping(z, g_v, 97, 249, 1);
641
- if (ret < 0) goto lab7;
642
- z->c += ret;
643
- }
644
- z->I[0] = z->c;
645
- lab7:
646
- z->c = c5;
647
- }
648
- return 1;
649
- }
650
-
651
- static int r_postlude(struct SN_env * z) {
652
- int among_var;
653
- while(1) {
654
- int c1 = z->c;
655
- z->bra = z->c;
656
- if (z->c >= z->l || (z->p[z->c + 0] != 73 && z->p[z->c + 0] != 85)) among_var = 3; else
657
- among_var = find_among(z, a_1, 3);
658
- if (!(among_var)) goto lab0;
659
- z->ket = z->c;
660
- switch (among_var) {
661
- case 1:
662
- { int ret = slice_from_s(z, 1, s_8);
663
- if (ret < 0) return ret;
664
- }
665
- break;
666
- case 2:
667
- { int ret = slice_from_s(z, 1, s_9);
668
- if (ret < 0) return ret;
669
- }
670
- break;
671
- case 3:
672
- if (z->c >= z->l) goto lab0;
673
- z->c++;
674
- break;
675
- }
676
- continue;
677
- lab0:
678
- z->c = c1;
679
- break;
680
- }
681
- return 1;
682
- }
683
-
684
- static int r_RV(struct SN_env * z) {
685
- if (!(z->I[2] <= z->c)) return 0;
686
- return 1;
687
- }
688
-
689
- static int r_R1(struct SN_env * z) {
690
- if (!(z->I[1] <= z->c)) return 0;
691
- return 1;
692
- }
693
-
694
- static int r_R2(struct SN_env * z) {
695
- if (!(z->I[0] <= z->c)) return 0;
696
- return 1;
697
- }
698
-
699
- static int r_attached_pronoun(struct SN_env * z) {
700
- int among_var;
701
- z->ket = z->c;
702
- if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((33314 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
703
- if (!(find_among_b(z, a_2, 37))) return 0;
704
- z->bra = z->c;
705
- if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 111 && z->p[z->c - 1] != 114)) return 0;
706
- among_var = find_among_b(z, a_3, 5);
707
- if (!(among_var)) return 0;
708
- { int ret = r_RV(z);
709
- if (ret <= 0) return ret;
710
- }
711
- switch (among_var) {
712
- case 1:
713
- { int ret = slice_del(z);
714
- if (ret < 0) return ret;
715
- }
716
- break;
717
- case 2:
718
- { int ret = slice_from_s(z, 1, s_10);
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;
729
- among_var = find_among_b(z, a_6, 51);
730
- if (!(among_var)) return 0;
731
- z->bra = z->c;
732
- switch (among_var) {
733
- case 1:
734
- { int ret = r_R2(z);
735
- if (ret <= 0) return ret;
736
- }
737
- { int ret = slice_del(z);
738
- if (ret < 0) return ret;
739
- }
740
- break;
741
- case 2:
742
- { int ret = r_R2(z);
743
- if (ret <= 0) return ret;
744
- }
745
- { int ret = slice_del(z);
746
- if (ret < 0) return ret;
747
- }
748
- { int m1 = z->l - z->c; (void)m1;
749
- z->ket = z->c;
750
- if (!(eq_s_b(z, 2, s_11))) { z->c = z->l - m1; goto lab0; }
751
- z->bra = z->c;
752
- { int ret = r_R2(z);
753
- if (ret == 0) { z->c = z->l - m1; goto lab0; }
754
- if (ret < 0) return ret;
755
- }
756
- { int ret = slice_del(z);
757
- if (ret < 0) return ret;
758
- }
759
- lab0:
760
- ;
761
- }
762
- break;
763
- case 3:
764
- { int ret = r_R2(z);
765
- if (ret <= 0) return ret;
766
- }
767
- { int ret = slice_from_s(z, 3, s_12);
768
- if (ret < 0) return ret;
769
- }
770
- break;
771
- case 4:
772
- { int ret = r_R2(z);
773
- if (ret <= 0) return ret;
774
- }
775
- { int ret = slice_from_s(z, 1, s_13);
776
- if (ret < 0) return ret;
777
- }
778
- break;
779
- case 5:
780
- { int ret = r_R2(z);
781
- if (ret <= 0) return ret;
782
- }
783
- { int ret = slice_from_s(z, 4, s_14);
784
- if (ret < 0) return ret;
785
- }
786
- break;
787
- case 6:
788
- { int ret = r_RV(z);
789
- if (ret <= 0) return ret;
790
- }
791
- { int ret = slice_del(z);
792
- if (ret < 0) return ret;
793
- }
794
- break;
795
- case 7:
796
- { int ret = r_R1(z);
797
- if (ret <= 0) return ret;
798
- }
799
- { int ret = slice_del(z);
800
- if (ret < 0) return ret;
801
- }
802
- { int m2 = z->l - z->c; (void)m2;
803
- z->ket = z->c;
804
- if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((4722696 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->c = z->l - m2; goto lab1; }
805
- among_var = find_among_b(z, a_4, 4);
806
- if (!(among_var)) { z->c = z->l - m2; goto lab1; }
807
- z->bra = z->c;
808
- { int ret = r_R2(z);
809
- if (ret == 0) { z->c = z->l - m2; goto lab1; }
810
- if (ret < 0) return ret;
811
- }
812
- { int ret = slice_del(z);
813
- if (ret < 0) return ret;
814
- }
815
- switch (among_var) {
816
- case 1:
817
- z->ket = z->c;
818
- if (!(eq_s_b(z, 2, s_15))) { z->c = z->l - m2; goto lab1; }
819
- z->bra = z->c;
820
- { int ret = r_R2(z);
821
- if (ret == 0) { z->c = z->l - m2; goto lab1; }
822
- if (ret < 0) return ret;
823
- }
824
- { int ret = slice_del(z);
825
- if (ret < 0) return ret;
826
- }
827
- break;
828
- }
829
- lab1:
830
- ;
831
- }
832
- break;
833
- case 8:
834
- { int ret = r_R2(z);
835
- if (ret <= 0) return ret;
836
- }
837
- { int ret = slice_del(z);
838
- if (ret < 0) return ret;
839
- }
840
- { int m3 = z->l - z->c; (void)m3;
841
- z->ket = z->c;
842
- if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((4198408 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->c = z->l - m3; goto lab2; }
843
- if (!(find_among_b(z, a_5, 3))) { z->c = z->l - m3; goto lab2; }
844
- z->bra = z->c;
845
- { int ret = r_R2(z);
846
- if (ret == 0) { z->c = z->l - m3; goto lab2; }
847
- if (ret < 0) return ret;
848
- }
849
- { int ret = slice_del(z);
850
- if (ret < 0) return ret;
851
- }
852
- lab2:
853
- ;
854
- }
855
- break;
856
- case 9:
857
- { int ret = r_R2(z);
858
- if (ret <= 0) return ret;
859
- }
860
- { int ret = slice_del(z);
861
- if (ret < 0) return ret;
862
- }
863
- { int m4 = z->l - z->c; (void)m4;
864
- z->ket = z->c;
865
- if (!(eq_s_b(z, 2, s_16))) { z->c = z->l - m4; goto lab3; }
866
- z->bra = z->c;
867
- { int ret = r_R2(z);
868
- if (ret == 0) { z->c = z->l - m4; goto lab3; }
869
- if (ret < 0) return ret;
870
- }
871
- { int ret = slice_del(z);
872
- if (ret < 0) return ret;
873
- }
874
- z->ket = z->c;
875
- if (!(eq_s_b(z, 2, s_17))) { z->c = z->l - m4; goto lab3; }
876
- z->bra = z->c;
877
- { int ret = r_R2(z);
878
- if (ret == 0) { z->c = z->l - m4; goto lab3; }
879
- if (ret < 0) return ret;
880
- }
881
- { int ret = slice_del(z);
882
- if (ret < 0) return ret;
883
- }
884
- lab3:
885
- ;
886
- }
887
- break;
888
- }
889
- return 1;
890
- }
891
-
892
- static int r_verb_suffix(struct SN_env * z) {
893
-
894
- { int mlimit1;
895
- if (z->c < z->I[2]) return 0;
896
- mlimit1 = z->lb; z->lb = z->I[2];
897
- z->ket = z->c;
898
- if (!(find_among_b(z, a_7, 87))) { z->lb = mlimit1; return 0; }
899
- z->bra = z->c;
900
- { int ret = slice_del(z);
901
- if (ret < 0) return ret;
902
- }
903
- z->lb = mlimit1;
904
- }
905
- return 1;
906
- }
907
-
908
- static int r_vowel_suffix(struct SN_env * z) {
909
- { int m1 = z->l - z->c; (void)m1;
910
- z->ket = z->c;
911
- if (in_grouping_b(z, g_AEIO, 97, 242, 0)) { z->c = z->l - m1; goto lab0; }
912
- z->bra = z->c;
913
- { int ret = r_RV(z);
914
- if (ret == 0) { z->c = z->l - m1; goto lab0; }
915
- if (ret < 0) return ret;
916
- }
917
- { int ret = slice_del(z);
918
- if (ret < 0) return ret;
919
- }
920
- z->ket = z->c;
921
- if (z->c <= z->lb || z->p[z->c - 1] != 'i') { z->c = z->l - m1; goto lab0; }
922
- z->c--;
923
- z->bra = z->c;
924
- { int ret = r_RV(z);
925
- if (ret == 0) { z->c = z->l - m1; goto lab0; }
926
- if (ret < 0) return ret;
927
- }
928
- { int ret = slice_del(z);
929
- if (ret < 0) return ret;
930
- }
931
- lab0:
932
- ;
933
- }
934
- { int m2 = z->l - z->c; (void)m2;
935
- z->ket = z->c;
936
- if (z->c <= z->lb || z->p[z->c - 1] != 'h') { z->c = z->l - m2; goto lab1; }
937
- z->c--;
938
- z->bra = z->c;
939
- if (in_grouping_b(z, g_CG, 99, 103, 0)) { z->c = z->l - m2; goto lab1; }
940
- { int ret = r_RV(z);
941
- if (ret == 0) { z->c = z->l - m2; goto lab1; }
942
- if (ret < 0) return ret;
943
- }
944
- { int ret = slice_del(z);
945
- if (ret < 0) return ret;
946
- }
947
- lab1:
948
- ;
949
- }
950
- return 1;
951
- }
952
-
953
- extern int italian_ISO_8859_1_stem(struct SN_env * z) {
954
- { int c1 = z->c;
955
- { int ret = r_prelude(z);
956
- if (ret < 0) return ret;
957
- }
958
- z->c = c1;
959
- }
960
-
961
- { int ret = r_mark_regions(z);
962
- if (ret < 0) return ret;
963
- }
964
- z->lb = z->c; z->c = z->l;
965
-
966
- { int m2 = z->l - z->c; (void)m2;
967
- { int ret = r_attached_pronoun(z);
968
- if (ret < 0) return ret;
969
- }
970
- z->c = z->l - m2;
971
- }
972
- { int m3 = z->l - z->c; (void)m3;
973
- { int m4 = z->l - z->c; (void)m4;
974
- { int ret = r_standard_suffix(z);
975
- if (ret == 0) goto lab2;
976
- if (ret < 0) return ret;
977
- }
978
- goto lab1;
979
- lab2:
980
- z->c = z->l - m4;
981
- { int ret = r_verb_suffix(z);
982
- if (ret == 0) goto lab0;
983
- if (ret < 0) return ret;
984
- }
985
- }
986
- lab1:
987
- lab0:
988
- z->c = z->l - m3;
989
- }
990
- { int m5 = z->l - z->c; (void)m5;
991
- { int ret = r_vowel_suffix(z);
992
- if (ret < 0) return ret;
993
- }
994
- z->c = z->l - m5;
995
- }
996
- z->c = z->lb;
997
- { int c6 = z->c;
998
- { int ret = r_postlude(z);
999
- if (ret < 0) return ret;
1000
- }
1001
- z->c = c6;
1002
- }
1003
- return 1;
1004
- }
1005
-
1006
- extern struct SN_env * italian_ISO_8859_1_create_env(void) { return SN_create_env(0, 3); }
1007
-
1008
- extern void italian_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 0); }
1009
-