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,849 +0,0 @@
1
- /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
2
-
3
- #include "stem_header.h"
4
-
5
- extern int hungarian_ISO_8859_2_stem(struct SN_env * z);
6
-
7
- static int r_double(struct SN_env * z);
8
- static int r_undouble(struct SN_env * z);
9
- static int r_factive(struct SN_env * z);
10
- static int r_instrum(struct SN_env * z);
11
- static int r_plur_owner(struct SN_env * z);
12
- static int r_sing_owner(struct SN_env * z);
13
- static int r_owned(struct SN_env * z);
14
- static int r_plural(struct SN_env * z);
15
- static int r_case_other(struct SN_env * z);
16
- static int r_case_special(struct SN_env * z);
17
- static int r_case(struct SN_env * z);
18
- static int r_v_ending(struct SN_env * z);
19
- static int r_R1(struct SN_env * z);
20
- static int r_mark_regions(struct SN_env * z);
21
-
22
- extern struct SN_env * hungarian_ISO_8859_2_create_env(void);
23
- extern void hungarian_ISO_8859_2_close_env(struct SN_env * z);
24
-
25
- static const symbol s_0_0[2] = { 'c', 's' };
26
- static const symbol s_0_1[3] = { 'd', 'z', 's' };
27
- static const symbol s_0_2[2] = { 'g', 'y' };
28
- static const symbol s_0_3[2] = { 'l', 'y' };
29
- static const symbol s_0_4[2] = { 'n', 'y' };
30
- static const symbol s_0_5[2] = { 's', 'z' };
31
- static const symbol s_0_6[2] = { 't', 'y' };
32
- static const symbol s_0_7[2] = { 'z', 's' };
33
-
34
- static const struct among a_0[8] =
35
- {
36
- { 2, s_0_0, -1, -1, 0},
37
- { 3, s_0_1, -1, -1, 0},
38
- { 2, s_0_2, -1, -1, 0},
39
- { 2, s_0_3, -1, -1, 0},
40
- { 2, s_0_4, -1, -1, 0},
41
- { 2, s_0_5, -1, -1, 0},
42
- { 2, s_0_6, -1, -1, 0},
43
- { 2, s_0_7, -1, -1, 0}
44
- };
45
-
46
- static const symbol s_1_0[1] = { 0xE1 };
47
- static const symbol s_1_1[1] = { 0xE9 };
48
-
49
- static const struct among a_1[2] =
50
- {
51
- { 1, s_1_0, -1, 1, 0},
52
- { 1, s_1_1, -1, 2, 0}
53
- };
54
-
55
- static const symbol s_2_0[2] = { 'b', 'b' };
56
- static const symbol s_2_1[2] = { 'c', 'c' };
57
- static const symbol s_2_2[2] = { 'd', 'd' };
58
- static const symbol s_2_3[2] = { 'f', 'f' };
59
- static const symbol s_2_4[2] = { 'g', 'g' };
60
- static const symbol s_2_5[2] = { 'j', 'j' };
61
- static const symbol s_2_6[2] = { 'k', 'k' };
62
- static const symbol s_2_7[2] = { 'l', 'l' };
63
- static const symbol s_2_8[2] = { 'm', 'm' };
64
- static const symbol s_2_9[2] = { 'n', 'n' };
65
- static const symbol s_2_10[2] = { 'p', 'p' };
66
- static const symbol s_2_11[2] = { 'r', 'r' };
67
- static const symbol s_2_12[3] = { 'c', 'c', 's' };
68
- static const symbol s_2_13[2] = { 's', 's' };
69
- static const symbol s_2_14[3] = { 'z', 'z', 's' };
70
- static const symbol s_2_15[2] = { 't', 't' };
71
- static const symbol s_2_16[2] = { 'v', 'v' };
72
- static const symbol s_2_17[3] = { 'g', 'g', 'y' };
73
- static const symbol s_2_18[3] = { 'l', 'l', 'y' };
74
- static const symbol s_2_19[3] = { 'n', 'n', 'y' };
75
- static const symbol s_2_20[3] = { 't', 't', 'y' };
76
- static const symbol s_2_21[3] = { 's', 's', 'z' };
77
- static const symbol s_2_22[2] = { 'z', 'z' };
78
-
79
- static const struct among a_2[23] =
80
- {
81
- { 2, s_2_0, -1, -1, 0},
82
- { 2, s_2_1, -1, -1, 0},
83
- { 2, s_2_2, -1, -1, 0},
84
- { 2, s_2_3, -1, -1, 0},
85
- { 2, s_2_4, -1, -1, 0},
86
- { 2, s_2_5, -1, -1, 0},
87
- { 2, s_2_6, -1, -1, 0},
88
- { 2, s_2_7, -1, -1, 0},
89
- { 2, s_2_8, -1, -1, 0},
90
- { 2, s_2_9, -1, -1, 0},
91
- { 2, s_2_10, -1, -1, 0},
92
- { 2, s_2_11, -1, -1, 0},
93
- { 3, s_2_12, -1, -1, 0},
94
- { 2, s_2_13, -1, -1, 0},
95
- { 3, s_2_14, -1, -1, 0},
96
- { 2, s_2_15, -1, -1, 0},
97
- { 2, s_2_16, -1, -1, 0},
98
- { 3, s_2_17, -1, -1, 0},
99
- { 3, s_2_18, -1, -1, 0},
100
- { 3, s_2_19, -1, -1, 0},
101
- { 3, s_2_20, -1, -1, 0},
102
- { 3, s_2_21, -1, -1, 0},
103
- { 2, s_2_22, -1, -1, 0}
104
- };
105
-
106
- static const symbol s_3_0[2] = { 'a', 'l' };
107
- static const symbol s_3_1[2] = { 'e', 'l' };
108
-
109
- static const struct among a_3[2] =
110
- {
111
- { 2, s_3_0, -1, 1, 0},
112
- { 2, s_3_1, -1, 1, 0}
113
- };
114
-
115
- static const symbol s_4_0[2] = { 'b', 'a' };
116
- static const symbol s_4_1[2] = { 'r', 'a' };
117
- static const symbol s_4_2[2] = { 'b', 'e' };
118
- static const symbol s_4_3[2] = { 'r', 'e' };
119
- static const symbol s_4_4[2] = { 'i', 'g' };
120
- static const symbol s_4_5[3] = { 'n', 'a', 'k' };
121
- static const symbol s_4_6[3] = { 'n', 'e', 'k' };
122
- static const symbol s_4_7[3] = { 'v', 'a', 'l' };
123
- static const symbol s_4_8[3] = { 'v', 'e', 'l' };
124
- static const symbol s_4_9[2] = { 'u', 'l' };
125
- static const symbol s_4_10[3] = { 'n', 0xE1, 'l' };
126
- static const symbol s_4_11[3] = { 'n', 0xE9, 'l' };
127
- static const symbol s_4_12[3] = { 'b', 0xF3, 'l' };
128
- static const symbol s_4_13[3] = { 'r', 0xF3, 'l' };
129
- static const symbol s_4_14[3] = { 't', 0xF3, 'l' };
130
- static const symbol s_4_15[3] = { 'b', 0xF5, 'l' };
131
- static const symbol s_4_16[3] = { 'r', 0xF5, 'l' };
132
- static const symbol s_4_17[3] = { 't', 0xF5, 'l' };
133
- static const symbol s_4_18[2] = { 0xFC, 'l' };
134
- static const symbol s_4_19[1] = { 'n' };
135
- static const symbol s_4_20[2] = { 'a', 'n' };
136
- static const symbol s_4_21[3] = { 'b', 'a', 'n' };
137
- static const symbol s_4_22[2] = { 'e', 'n' };
138
- static const symbol s_4_23[3] = { 'b', 'e', 'n' };
139
- static const symbol s_4_24[6] = { 'k', 0xE9, 'p', 'p', 'e', 'n' };
140
- static const symbol s_4_25[2] = { 'o', 'n' };
141
- static const symbol s_4_26[2] = { 0xF6, 'n' };
142
- static const symbol s_4_27[4] = { 'k', 0xE9, 'p', 'p' };
143
- static const symbol s_4_28[3] = { 'k', 'o', 'r' };
144
- static const symbol s_4_29[1] = { 't' };
145
- static const symbol s_4_30[2] = { 'a', 't' };
146
- static const symbol s_4_31[2] = { 'e', 't' };
147
- static const symbol s_4_32[4] = { 'k', 0xE9, 'n', 't' };
148
- static const symbol s_4_33[6] = { 'a', 'n', 'k', 0xE9, 'n', 't' };
149
- static const symbol s_4_34[6] = { 'e', 'n', 'k', 0xE9, 'n', 't' };
150
- static const symbol s_4_35[6] = { 'o', 'n', 'k', 0xE9, 'n', 't' };
151
- static const symbol s_4_36[2] = { 'o', 't' };
152
- static const symbol s_4_37[3] = { 0xE9, 'r', 't' };
153
- static const symbol s_4_38[2] = { 0xF6, 't' };
154
- static const symbol s_4_39[3] = { 'h', 'e', 'z' };
155
- static const symbol s_4_40[3] = { 'h', 'o', 'z' };
156
- static const symbol s_4_41[3] = { 'h', 0xF6, 'z' };
157
- static const symbol s_4_42[2] = { 'v', 0xE1 };
158
- static const symbol s_4_43[2] = { 'v', 0xE9 };
159
-
160
- static const struct among a_4[44] =
161
- {
162
- { 2, s_4_0, -1, -1, 0},
163
- { 2, s_4_1, -1, -1, 0},
164
- { 2, s_4_2, -1, -1, 0},
165
- { 2, s_4_3, -1, -1, 0},
166
- { 2, s_4_4, -1, -1, 0},
167
- { 3, s_4_5, -1, -1, 0},
168
- { 3, s_4_6, -1, -1, 0},
169
- { 3, s_4_7, -1, -1, 0},
170
- { 3, s_4_8, -1, -1, 0},
171
- { 2, s_4_9, -1, -1, 0},
172
- { 3, s_4_10, -1, -1, 0},
173
- { 3, s_4_11, -1, -1, 0},
174
- { 3, s_4_12, -1, -1, 0},
175
- { 3, s_4_13, -1, -1, 0},
176
- { 3, s_4_14, -1, -1, 0},
177
- { 3, s_4_15, -1, -1, 0},
178
- { 3, s_4_16, -1, -1, 0},
179
- { 3, s_4_17, -1, -1, 0},
180
- { 2, s_4_18, -1, -1, 0},
181
- { 1, s_4_19, -1, -1, 0},
182
- { 2, s_4_20, 19, -1, 0},
183
- { 3, s_4_21, 20, -1, 0},
184
- { 2, s_4_22, 19, -1, 0},
185
- { 3, s_4_23, 22, -1, 0},
186
- { 6, s_4_24, 22, -1, 0},
187
- { 2, s_4_25, 19, -1, 0},
188
- { 2, s_4_26, 19, -1, 0},
189
- { 4, s_4_27, -1, -1, 0},
190
- { 3, s_4_28, -1, -1, 0},
191
- { 1, s_4_29, -1, -1, 0},
192
- { 2, s_4_30, 29, -1, 0},
193
- { 2, s_4_31, 29, -1, 0},
194
- { 4, s_4_32, 29, -1, 0},
195
- { 6, s_4_33, 32, -1, 0},
196
- { 6, s_4_34, 32, -1, 0},
197
- { 6, s_4_35, 32, -1, 0},
198
- { 2, s_4_36, 29, -1, 0},
199
- { 3, s_4_37, 29, -1, 0},
200
- { 2, s_4_38, 29, -1, 0},
201
- { 3, s_4_39, -1, -1, 0},
202
- { 3, s_4_40, -1, -1, 0},
203
- { 3, s_4_41, -1, -1, 0},
204
- { 2, s_4_42, -1, -1, 0},
205
- { 2, s_4_43, -1, -1, 0}
206
- };
207
-
208
- static const symbol s_5_0[2] = { 0xE1, 'n' };
209
- static const symbol s_5_1[2] = { 0xE9, 'n' };
210
- static const symbol s_5_2[6] = { 0xE1, 'n', 'k', 0xE9, 'n', 't' };
211
-
212
- static const struct among a_5[3] =
213
- {
214
- { 2, s_5_0, -1, 2, 0},
215
- { 2, s_5_1, -1, 1, 0},
216
- { 6, s_5_2, -1, 2, 0}
217
- };
218
-
219
- static const symbol s_6_0[4] = { 's', 't', 'u', 'l' };
220
- static const symbol s_6_1[5] = { 'a', 's', 't', 'u', 'l' };
221
- static const symbol s_6_2[5] = { 0xE1, 's', 't', 'u', 'l' };
222
- static const symbol s_6_3[4] = { 's', 't', 0xFC, 'l' };
223
- static const symbol s_6_4[5] = { 'e', 's', 't', 0xFC, 'l' };
224
- static const symbol s_6_5[5] = { 0xE9, 's', 't', 0xFC, 'l' };
225
-
226
- static const struct among a_6[6] =
227
- {
228
- { 4, s_6_0, -1, 1, 0},
229
- { 5, s_6_1, 0, 1, 0},
230
- { 5, s_6_2, 0, 2, 0},
231
- { 4, s_6_3, -1, 1, 0},
232
- { 5, s_6_4, 3, 1, 0},
233
- { 5, s_6_5, 3, 3, 0}
234
- };
235
-
236
- static const symbol s_7_0[1] = { 0xE1 };
237
- static const symbol s_7_1[1] = { 0xE9 };
238
-
239
- static const struct among a_7[2] =
240
- {
241
- { 1, s_7_0, -1, 1, 0},
242
- { 1, s_7_1, -1, 1, 0}
243
- };
244
-
245
- static const symbol s_8_0[1] = { 'k' };
246
- static const symbol s_8_1[2] = { 'a', 'k' };
247
- static const symbol s_8_2[2] = { 'e', 'k' };
248
- static const symbol s_8_3[2] = { 'o', 'k' };
249
- static const symbol s_8_4[2] = { 0xE1, 'k' };
250
- static const symbol s_8_5[2] = { 0xE9, 'k' };
251
- static const symbol s_8_6[2] = { 0xF6, 'k' };
252
-
253
- static const struct among a_8[7] =
254
- {
255
- { 1, s_8_0, -1, 3, 0},
256
- { 2, s_8_1, 0, 3, 0},
257
- { 2, s_8_2, 0, 3, 0},
258
- { 2, s_8_3, 0, 3, 0},
259
- { 2, s_8_4, 0, 1, 0},
260
- { 2, s_8_5, 0, 2, 0},
261
- { 2, s_8_6, 0, 3, 0}
262
- };
263
-
264
- static const symbol s_9_0[2] = { 0xE9, 'i' };
265
- static const symbol s_9_1[3] = { 0xE1, 0xE9, 'i' };
266
- static const symbol s_9_2[3] = { 0xE9, 0xE9, 'i' };
267
- static const symbol s_9_3[1] = { 0xE9 };
268
- static const symbol s_9_4[2] = { 'k', 0xE9 };
269
- static const symbol s_9_5[3] = { 'a', 'k', 0xE9 };
270
- static const symbol s_9_6[3] = { 'e', 'k', 0xE9 };
271
- static const symbol s_9_7[3] = { 'o', 'k', 0xE9 };
272
- static const symbol s_9_8[3] = { 0xE1, 'k', 0xE9 };
273
- static const symbol s_9_9[3] = { 0xE9, 'k', 0xE9 };
274
- static const symbol s_9_10[3] = { 0xF6, 'k', 0xE9 };
275
- static const symbol s_9_11[2] = { 0xE9, 0xE9 };
276
-
277
- static const struct among a_9[12] =
278
- {
279
- { 2, s_9_0, -1, 1, 0},
280
- { 3, s_9_1, 0, 3, 0},
281
- { 3, s_9_2, 0, 2, 0},
282
- { 1, s_9_3, -1, 1, 0},
283
- { 2, s_9_4, 3, 1, 0},
284
- { 3, s_9_5, 4, 1, 0},
285
- { 3, s_9_6, 4, 1, 0},
286
- { 3, s_9_7, 4, 1, 0},
287
- { 3, s_9_8, 4, 3, 0},
288
- { 3, s_9_9, 4, 2, 0},
289
- { 3, s_9_10, 4, 1, 0},
290
- { 2, s_9_11, 3, 2, 0}
291
- };
292
-
293
- static const symbol s_10_0[1] = { 'a' };
294
- static const symbol s_10_1[2] = { 'j', 'a' };
295
- static const symbol s_10_2[1] = { 'd' };
296
- static const symbol s_10_3[2] = { 'a', 'd' };
297
- static const symbol s_10_4[2] = { 'e', 'd' };
298
- static const symbol s_10_5[2] = { 'o', 'd' };
299
- static const symbol s_10_6[2] = { 0xE1, 'd' };
300
- static const symbol s_10_7[2] = { 0xE9, 'd' };
301
- static const symbol s_10_8[2] = { 0xF6, 'd' };
302
- static const symbol s_10_9[1] = { 'e' };
303
- static const symbol s_10_10[2] = { 'j', 'e' };
304
- static const symbol s_10_11[2] = { 'n', 'k' };
305
- static const symbol s_10_12[3] = { 'u', 'n', 'k' };
306
- static const symbol s_10_13[3] = { 0xE1, 'n', 'k' };
307
- static const symbol s_10_14[3] = { 0xE9, 'n', 'k' };
308
- static const symbol s_10_15[3] = { 0xFC, 'n', 'k' };
309
- static const symbol s_10_16[2] = { 'u', 'k' };
310
- static const symbol s_10_17[3] = { 'j', 'u', 'k' };
311
- static const symbol s_10_18[4] = { 0xE1, 'j', 'u', 'k' };
312
- static const symbol s_10_19[2] = { 0xFC, 'k' };
313
- static const symbol s_10_20[3] = { 'j', 0xFC, 'k' };
314
- static const symbol s_10_21[4] = { 0xE9, 'j', 0xFC, 'k' };
315
- static const symbol s_10_22[1] = { 'm' };
316
- static const symbol s_10_23[2] = { 'a', 'm' };
317
- static const symbol s_10_24[2] = { 'e', 'm' };
318
- static const symbol s_10_25[2] = { 'o', 'm' };
319
- static const symbol s_10_26[2] = { 0xE1, 'm' };
320
- static const symbol s_10_27[2] = { 0xE9, 'm' };
321
- static const symbol s_10_28[1] = { 'o' };
322
- static const symbol s_10_29[1] = { 0xE1 };
323
- static const symbol s_10_30[1] = { 0xE9 };
324
-
325
- static const struct among a_10[31] =
326
- {
327
- { 1, s_10_0, -1, 1, 0},
328
- { 2, s_10_1, 0, 1, 0},
329
- { 1, s_10_2, -1, 1, 0},
330
- { 2, s_10_3, 2, 1, 0},
331
- { 2, s_10_4, 2, 1, 0},
332
- { 2, s_10_5, 2, 1, 0},
333
- { 2, s_10_6, 2, 2, 0},
334
- { 2, s_10_7, 2, 3, 0},
335
- { 2, s_10_8, 2, 1, 0},
336
- { 1, s_10_9, -1, 1, 0},
337
- { 2, s_10_10, 9, 1, 0},
338
- { 2, s_10_11, -1, 1, 0},
339
- { 3, s_10_12, 11, 1, 0},
340
- { 3, s_10_13, 11, 2, 0},
341
- { 3, s_10_14, 11, 3, 0},
342
- { 3, s_10_15, 11, 1, 0},
343
- { 2, s_10_16, -1, 1, 0},
344
- { 3, s_10_17, 16, 1, 0},
345
- { 4, s_10_18, 17, 2, 0},
346
- { 2, s_10_19, -1, 1, 0},
347
- { 3, s_10_20, 19, 1, 0},
348
- { 4, s_10_21, 20, 3, 0},
349
- { 1, s_10_22, -1, 1, 0},
350
- { 2, s_10_23, 22, 1, 0},
351
- { 2, s_10_24, 22, 1, 0},
352
- { 2, s_10_25, 22, 1, 0},
353
- { 2, s_10_26, 22, 2, 0},
354
- { 2, s_10_27, 22, 3, 0},
355
- { 1, s_10_28, -1, 1, 0},
356
- { 1, s_10_29, -1, 2, 0},
357
- { 1, s_10_30, -1, 3, 0}
358
- };
359
-
360
- static const symbol s_11_0[2] = { 'i', 'd' };
361
- static const symbol s_11_1[3] = { 'a', 'i', 'd' };
362
- static const symbol s_11_2[4] = { 'j', 'a', 'i', 'd' };
363
- static const symbol s_11_3[3] = { 'e', 'i', 'd' };
364
- static const symbol s_11_4[4] = { 'j', 'e', 'i', 'd' };
365
- static const symbol s_11_5[3] = { 0xE1, 'i', 'd' };
366
- static const symbol s_11_6[3] = { 0xE9, 'i', 'd' };
367
- static const symbol s_11_7[1] = { 'i' };
368
- static const symbol s_11_8[2] = { 'a', 'i' };
369
- static const symbol s_11_9[3] = { 'j', 'a', 'i' };
370
- static const symbol s_11_10[2] = { 'e', 'i' };
371
- static const symbol s_11_11[3] = { 'j', 'e', 'i' };
372
- static const symbol s_11_12[2] = { 0xE1, 'i' };
373
- static const symbol s_11_13[2] = { 0xE9, 'i' };
374
- static const symbol s_11_14[4] = { 'i', 't', 'e', 'k' };
375
- static const symbol s_11_15[5] = { 'e', 'i', 't', 'e', 'k' };
376
- static const symbol s_11_16[6] = { 'j', 'e', 'i', 't', 'e', 'k' };
377
- static const symbol s_11_17[5] = { 0xE9, 'i', 't', 'e', 'k' };
378
- static const symbol s_11_18[2] = { 'i', 'k' };
379
- static const symbol s_11_19[3] = { 'a', 'i', 'k' };
380
- static const symbol s_11_20[4] = { 'j', 'a', 'i', 'k' };
381
- static const symbol s_11_21[3] = { 'e', 'i', 'k' };
382
- static const symbol s_11_22[4] = { 'j', 'e', 'i', 'k' };
383
- static const symbol s_11_23[3] = { 0xE1, 'i', 'k' };
384
- static const symbol s_11_24[3] = { 0xE9, 'i', 'k' };
385
- static const symbol s_11_25[3] = { 'i', 'n', 'k' };
386
- static const symbol s_11_26[4] = { 'a', 'i', 'n', 'k' };
387
- static const symbol s_11_27[5] = { 'j', 'a', 'i', 'n', 'k' };
388
- static const symbol s_11_28[4] = { 'e', 'i', 'n', 'k' };
389
- static const symbol s_11_29[5] = { 'j', 'e', 'i', 'n', 'k' };
390
- static const symbol s_11_30[4] = { 0xE1, 'i', 'n', 'k' };
391
- static const symbol s_11_31[4] = { 0xE9, 'i', 'n', 'k' };
392
- static const symbol s_11_32[5] = { 'a', 'i', 't', 'o', 'k' };
393
- static const symbol s_11_33[6] = { 'j', 'a', 'i', 't', 'o', 'k' };
394
- static const symbol s_11_34[5] = { 0xE1, 'i', 't', 'o', 'k' };
395
- static const symbol s_11_35[2] = { 'i', 'm' };
396
- static const symbol s_11_36[3] = { 'a', 'i', 'm' };
397
- static const symbol s_11_37[4] = { 'j', 'a', 'i', 'm' };
398
- static const symbol s_11_38[3] = { 'e', 'i', 'm' };
399
- static const symbol s_11_39[4] = { 'j', 'e', 'i', 'm' };
400
- static const symbol s_11_40[3] = { 0xE1, 'i', 'm' };
401
- static const symbol s_11_41[3] = { 0xE9, 'i', 'm' };
402
-
403
- static const struct among a_11[42] =
404
- {
405
- { 2, s_11_0, -1, 1, 0},
406
- { 3, s_11_1, 0, 1, 0},
407
- { 4, s_11_2, 1, 1, 0},
408
- { 3, s_11_3, 0, 1, 0},
409
- { 4, s_11_4, 3, 1, 0},
410
- { 3, s_11_5, 0, 2, 0},
411
- { 3, s_11_6, 0, 3, 0},
412
- { 1, s_11_7, -1, 1, 0},
413
- { 2, s_11_8, 7, 1, 0},
414
- { 3, s_11_9, 8, 1, 0},
415
- { 2, s_11_10, 7, 1, 0},
416
- { 3, s_11_11, 10, 1, 0},
417
- { 2, s_11_12, 7, 2, 0},
418
- { 2, s_11_13, 7, 3, 0},
419
- { 4, s_11_14, -1, 1, 0},
420
- { 5, s_11_15, 14, 1, 0},
421
- { 6, s_11_16, 15, 1, 0},
422
- { 5, s_11_17, 14, 3, 0},
423
- { 2, s_11_18, -1, 1, 0},
424
- { 3, s_11_19, 18, 1, 0},
425
- { 4, s_11_20, 19, 1, 0},
426
- { 3, s_11_21, 18, 1, 0},
427
- { 4, s_11_22, 21, 1, 0},
428
- { 3, s_11_23, 18, 2, 0},
429
- { 3, s_11_24, 18, 3, 0},
430
- { 3, s_11_25, -1, 1, 0},
431
- { 4, s_11_26, 25, 1, 0},
432
- { 5, s_11_27, 26, 1, 0},
433
- { 4, s_11_28, 25, 1, 0},
434
- { 5, s_11_29, 28, 1, 0},
435
- { 4, s_11_30, 25, 2, 0},
436
- { 4, s_11_31, 25, 3, 0},
437
- { 5, s_11_32, -1, 1, 0},
438
- { 6, s_11_33, 32, 1, 0},
439
- { 5, s_11_34, -1, 2, 0},
440
- { 2, s_11_35, -1, 1, 0},
441
- { 3, s_11_36, 35, 1, 0},
442
- { 4, s_11_37, 36, 1, 0},
443
- { 3, s_11_38, 35, 1, 0},
444
- { 4, s_11_39, 38, 1, 0},
445
- { 3, s_11_40, 35, 2, 0},
446
- { 3, s_11_41, 35, 3, 0}
447
- };
448
-
449
- static const unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 17, 52, 14 };
450
-
451
- static const symbol s_0[] = { 'a' };
452
- static const symbol s_1[] = { 'e' };
453
- static const symbol s_2[] = { 'e' };
454
- static const symbol s_3[] = { 'a' };
455
- static const symbol s_4[] = { 'a' };
456
- static const symbol s_5[] = { 'e' };
457
- static const symbol s_6[] = { 'a' };
458
- static const symbol s_7[] = { 'e' };
459
- static const symbol s_8[] = { 'e' };
460
- static const symbol s_9[] = { 'a' };
461
- static const symbol s_10[] = { 'a' };
462
- static const symbol s_11[] = { 'e' };
463
- static const symbol s_12[] = { 'a' };
464
- static const symbol s_13[] = { 'e' };
465
-
466
- static int r_mark_regions(struct SN_env * z) {
467
- z->I[0] = z->l;
468
- { int c1 = z->c;
469
- if (in_grouping(z, g_v, 97, 252, 0)) goto lab1;
470
- if (in_grouping(z, g_v, 97, 252, 1) < 0) goto lab1;
471
- { int c2 = z->c;
472
- if (z->c + 1 >= z->l || z->p[z->c + 1] >> 5 != 3 || !((101187584 >> (z->p[z->c + 1] & 0x1f)) & 1)) goto lab3;
473
- if (!(find_among(z, a_0, 8))) goto lab3;
474
- goto lab2;
475
- lab3:
476
- z->c = c2;
477
- if (z->c >= z->l) goto lab1;
478
- z->c++;
479
- }
480
- lab2:
481
- z->I[0] = z->c;
482
- goto lab0;
483
- lab1:
484
- z->c = c1;
485
- if (out_grouping(z, g_v, 97, 252, 0)) return 0;
486
- {
487
- int ret = out_grouping(z, g_v, 97, 252, 1);
488
- if (ret < 0) return 0;
489
- z->c += ret;
490
- }
491
- z->I[0] = z->c;
492
- }
493
- lab0:
494
- return 1;
495
- }
496
-
497
- static int r_R1(struct SN_env * z) {
498
- if (!(z->I[0] <= z->c)) return 0;
499
- return 1;
500
- }
501
-
502
- static int r_v_ending(struct SN_env * z) {
503
- int among_var;
504
- z->ket = z->c;
505
- if (z->c <= z->lb || (z->p[z->c - 1] != 225 && z->p[z->c - 1] != 233)) return 0;
506
- among_var = find_among_b(z, a_1, 2);
507
- if (!(among_var)) return 0;
508
- z->bra = z->c;
509
- { int ret = r_R1(z);
510
- if (ret <= 0) return ret;
511
- }
512
- switch (among_var) {
513
- case 1:
514
- { int ret = slice_from_s(z, 1, s_0);
515
- if (ret < 0) return ret;
516
- }
517
- break;
518
- case 2:
519
- { int ret = slice_from_s(z, 1, s_1);
520
- if (ret < 0) return ret;
521
- }
522
- break;
523
- }
524
- return 1;
525
- }
526
-
527
- static int r_double(struct SN_env * z) {
528
- { int m_test1 = z->l - z->c;
529
- if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((106790108 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
530
- if (!(find_among_b(z, a_2, 23))) return 0;
531
- z->c = z->l - m_test1;
532
- }
533
- return 1;
534
- }
535
-
536
- static int r_undouble(struct SN_env * z) {
537
- if (z->c <= z->lb) return 0;
538
- z->c--;
539
- z->ket = z->c;
540
- z->c = z->c - 1;
541
- if (z->c < z->lb) return 0;
542
- z->bra = z->c;
543
- { int ret = slice_del(z);
544
- if (ret < 0) return ret;
545
- }
546
- return 1;
547
- }
548
-
549
- static int r_instrum(struct SN_env * z) {
550
- z->ket = z->c;
551
- if (z->c - 1 <= z->lb || z->p[z->c - 1] != 108) return 0;
552
- if (!(find_among_b(z, a_3, 2))) return 0;
553
- z->bra = z->c;
554
- { int ret = r_R1(z);
555
- if (ret <= 0) return ret;
556
- }
557
- { int ret = r_double(z);
558
- if (ret <= 0) return ret;
559
- }
560
- { int ret = slice_del(z);
561
- if (ret < 0) return ret;
562
- }
563
- { int ret = r_undouble(z);
564
- if (ret <= 0) return ret;
565
- }
566
- return 1;
567
- }
568
-
569
- static int r_case(struct SN_env * z) {
570
- z->ket = z->c;
571
- if (!(find_among_b(z, a_4, 44))) return 0;
572
- z->bra = z->c;
573
- { int ret = r_R1(z);
574
- if (ret <= 0) return ret;
575
- }
576
- { int ret = slice_del(z);
577
- if (ret < 0) return ret;
578
- }
579
- { int ret = r_v_ending(z);
580
- if (ret <= 0) return ret;
581
- }
582
- return 1;
583
- }
584
-
585
- static int r_case_special(struct SN_env * z) {
586
- int among_var;
587
- z->ket = z->c;
588
- if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 110 && z->p[z->c - 1] != 116)) return 0;
589
- among_var = find_among_b(z, a_5, 3);
590
- if (!(among_var)) return 0;
591
- z->bra = z->c;
592
- { int ret = r_R1(z);
593
- if (ret <= 0) return ret;
594
- }
595
- switch (among_var) {
596
- case 1:
597
- { int ret = slice_from_s(z, 1, s_2);
598
- if (ret < 0) return ret;
599
- }
600
- break;
601
- case 2:
602
- { int ret = slice_from_s(z, 1, s_3);
603
- if (ret < 0) return ret;
604
- }
605
- break;
606
- }
607
- return 1;
608
- }
609
-
610
- static int r_case_other(struct SN_env * z) {
611
- int among_var;
612
- z->ket = z->c;
613
- if (z->c - 3 <= z->lb || z->p[z->c - 1] != 108) return 0;
614
- among_var = find_among_b(z, a_6, 6);
615
- if (!(among_var)) return 0;
616
- z->bra = z->c;
617
- { int ret = r_R1(z);
618
- if (ret <= 0) return ret;
619
- }
620
- switch (among_var) {
621
- case 1:
622
- { int ret = slice_del(z);
623
- if (ret < 0) return ret;
624
- }
625
- break;
626
- case 2:
627
- { int ret = slice_from_s(z, 1, s_4);
628
- if (ret < 0) return ret;
629
- }
630
- break;
631
- case 3:
632
- { int ret = slice_from_s(z, 1, s_5);
633
- if (ret < 0) return ret;
634
- }
635
- break;
636
- }
637
- return 1;
638
- }
639
-
640
- static int r_factive(struct SN_env * z) {
641
- z->ket = z->c;
642
- if (z->c <= z->lb || (z->p[z->c - 1] != 225 && z->p[z->c - 1] != 233)) return 0;
643
- if (!(find_among_b(z, a_7, 2))) return 0;
644
- z->bra = z->c;
645
- { int ret = r_R1(z);
646
- if (ret <= 0) return ret;
647
- }
648
- { int ret = r_double(z);
649
- if (ret <= 0) return ret;
650
- }
651
- { int ret = slice_del(z);
652
- if (ret < 0) return ret;
653
- }
654
- { int ret = r_undouble(z);
655
- if (ret <= 0) return ret;
656
- }
657
- return 1;
658
- }
659
-
660
- static int r_plural(struct SN_env * z) {
661
- int among_var;
662
- z->ket = z->c;
663
- if (z->c <= z->lb || z->p[z->c - 1] != 107) return 0;
664
- among_var = find_among_b(z, a_8, 7);
665
- if (!(among_var)) return 0;
666
- z->bra = z->c;
667
- { int ret = r_R1(z);
668
- if (ret <= 0) return ret;
669
- }
670
- switch (among_var) {
671
- case 1:
672
- { int ret = slice_from_s(z, 1, s_6);
673
- if (ret < 0) return ret;
674
- }
675
- break;
676
- case 2:
677
- { int ret = slice_from_s(z, 1, s_7);
678
- if (ret < 0) return ret;
679
- }
680
- break;
681
- case 3:
682
- { int ret = slice_del(z);
683
- if (ret < 0) return ret;
684
- }
685
- break;
686
- }
687
- return 1;
688
- }
689
-
690
- static int r_owned(struct SN_env * z) {
691
- int among_var;
692
- z->ket = z->c;
693
- if (z->c <= z->lb || (z->p[z->c - 1] != 105 && z->p[z->c - 1] != 233)) return 0;
694
- among_var = find_among_b(z, a_9, 12);
695
- if (!(among_var)) return 0;
696
- z->bra = z->c;
697
- { int ret = r_R1(z);
698
- if (ret <= 0) return ret;
699
- }
700
- switch (among_var) {
701
- case 1:
702
- { int ret = slice_del(z);
703
- if (ret < 0) return ret;
704
- }
705
- break;
706
- case 2:
707
- { int ret = slice_from_s(z, 1, s_8);
708
- if (ret < 0) return ret;
709
- }
710
- break;
711
- case 3:
712
- { int ret = slice_from_s(z, 1, s_9);
713
- if (ret < 0) return ret;
714
- }
715
- break;
716
- }
717
- return 1;
718
- }
719
-
720
- static int r_sing_owner(struct SN_env * z) {
721
- int among_var;
722
- z->ket = z->c;
723
- among_var = find_among_b(z, a_10, 31);
724
- if (!(among_var)) return 0;
725
- z->bra = z->c;
726
- { int ret = r_R1(z);
727
- if (ret <= 0) return ret;
728
- }
729
- switch (among_var) {
730
- case 1:
731
- { int ret = slice_del(z);
732
- if (ret < 0) return ret;
733
- }
734
- break;
735
- case 2:
736
- { int ret = slice_from_s(z, 1, s_10);
737
- if (ret < 0) return ret;
738
- }
739
- break;
740
- case 3:
741
- { int ret = slice_from_s(z, 1, s_11);
742
- if (ret < 0) return ret;
743
- }
744
- break;
745
- }
746
- return 1;
747
- }
748
-
749
- static int r_plur_owner(struct SN_env * z) {
750
- int among_var;
751
- z->ket = z->c;
752
- if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((10768 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
753
- among_var = find_among_b(z, a_11, 42);
754
- if (!(among_var)) return 0;
755
- z->bra = z->c;
756
- { int ret = r_R1(z);
757
- if (ret <= 0) return ret;
758
- }
759
- switch (among_var) {
760
- case 1:
761
- { int ret = slice_del(z);
762
- if (ret < 0) return ret;
763
- }
764
- break;
765
- case 2:
766
- { int ret = slice_from_s(z, 1, s_12);
767
- if (ret < 0) return ret;
768
- }
769
- break;
770
- case 3:
771
- { int ret = slice_from_s(z, 1, s_13);
772
- if (ret < 0) return ret;
773
- }
774
- break;
775
- }
776
- return 1;
777
- }
778
-
779
- extern int hungarian_ISO_8859_2_stem(struct SN_env * z) {
780
- { int c1 = z->c;
781
- { int ret = r_mark_regions(z);
782
- if (ret < 0) return ret;
783
- }
784
- z->c = c1;
785
- }
786
- z->lb = z->c; z->c = z->l;
787
-
788
- { int m2 = z->l - z->c; (void)m2;
789
- { int ret = r_instrum(z);
790
- if (ret < 0) return ret;
791
- }
792
- z->c = z->l - m2;
793
- }
794
- { int m3 = z->l - z->c; (void)m3;
795
- { int ret = r_case(z);
796
- if (ret < 0) return ret;
797
- }
798
- z->c = z->l - m3;
799
- }
800
- { int m4 = z->l - z->c; (void)m4;
801
- { int ret = r_case_special(z);
802
- if (ret < 0) return ret;
803
- }
804
- z->c = z->l - m4;
805
- }
806
- { int m5 = z->l - z->c; (void)m5;
807
- { int ret = r_case_other(z);
808
- if (ret < 0) return ret;
809
- }
810
- z->c = z->l - m5;
811
- }
812
- { int m6 = z->l - z->c; (void)m6;
813
- { int ret = r_factive(z);
814
- if (ret < 0) return ret;
815
- }
816
- z->c = z->l - m6;
817
- }
818
- { int m7 = z->l - z->c; (void)m7;
819
- { int ret = r_owned(z);
820
- if (ret < 0) return ret;
821
- }
822
- z->c = z->l - m7;
823
- }
824
- { int m8 = z->l - z->c; (void)m8;
825
- { int ret = r_sing_owner(z);
826
- if (ret < 0) return ret;
827
- }
828
- z->c = z->l - m8;
829
- }
830
- { int m9 = z->l - z->c; (void)m9;
831
- { int ret = r_plur_owner(z);
832
- if (ret < 0) return ret;
833
- }
834
- z->c = z->l - m9;
835
- }
836
- { int m10 = z->l - z->c; (void)m10;
837
- { int ret = r_plural(z);
838
- if (ret < 0) return ret;
839
- }
840
- z->c = z->l - m10;
841
- }
842
- z->c = z->lb;
843
- return 1;
844
- }
845
-
846
- extern struct SN_env * hungarian_ISO_8859_2_create_env(void) { return SN_create_env(0, 1); }
847
-
848
- extern void hungarian_ISO_8859_2_close_env(struct SN_env * z) { SN_close_env(z, 0); }
849
-