Line data Source code
1 : /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
2 :
3 : #include "header.h"
4 :
5 : #ifdef __cplusplus
6 : extern "C" {
7 : #endif
8 : extern int armenian_UTF_8_stem(struct SN_env * z);
9 : #ifdef __cplusplus
10 : }
11 : #endif
12 : static int r_ending(struct SN_env * z);
13 : static int r_noun(struct SN_env * z);
14 : static int r_verb(struct SN_env * z);
15 : static int r_adjective(struct SN_env * z);
16 : static int r_R2(struct SN_env * z);
17 : static int r_mark_regions(struct SN_env * z);
18 : #ifdef __cplusplus
19 : extern "C" {
20 : #endif
21 :
22 :
23 : extern struct SN_env * armenian_UTF_8_create_env(void);
24 : extern void armenian_UTF_8_close_env(struct SN_env * z);
25 :
26 :
27 : #ifdef __cplusplus
28 : }
29 : #endif
30 : static const symbol s_0_0[6] = { 0xD5, 0xA2, 0xD5, 0xA1, 0xD6, 0x80 };
31 : static const symbol s_0_1[8] = { 0xD6, 0x80, 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA4 };
32 : static const symbol s_0_2[10] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA4 };
33 : static const symbol s_0_3[6] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xAB };
34 : static const symbol s_0_4[6] = { 0xD5, 0xA1, 0xD5, 0xAF, 0xD5, 0xAB };
35 : static const symbol s_0_5[8] = { 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA1, 0xD5, 0xAF };
36 : static const symbol s_0_6[4] = { 0xD5, 0xA5, 0xD5, 0xB2 };
37 : static const symbol s_0_7[8] = { 0xD5, 0xBE, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6 };
38 : static const symbol s_0_8[8] = { 0xD5, 0xA1, 0xD6, 0x80, 0xD5, 0xA1, 0xD5, 0xB6 };
39 : static const symbol s_0_9[8] = { 0xD5, 0xA1, 0xD5, 0xAF, 0xD5, 0xA1, 0xD5, 0xB6 };
40 : static const symbol s_0_10[4] = { 0xD5, 0xA5, 0xD5, 0xB6 };
41 : static const symbol s_0_11[8] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA5, 0xD5, 0xB6 };
42 : static const symbol s_0_12[8] = { 0xD5, 0xA5, 0xD5, 0xAF, 0xD5, 0xA5, 0xD5, 0xB6 };
43 : static const symbol s_0_13[8] = { 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA7, 0xD5, 0xB6 };
44 : static const symbol s_0_14[4] = { 0xD5, 0xAB, 0xD5, 0xB6 };
45 : static const symbol s_0_15[6] = { 0xD5, 0xA3, 0xD5, 0xAB, 0xD5, 0xB6 };
46 : static const symbol s_0_16[8] = { 0xD5, 0xB8, 0xD5, 0xBE, 0xD5, 0xAB, 0xD5, 0xB6 };
47 : static const symbol s_0_17[8] = { 0xD5, 0xAC, 0xD5, 0xA1, 0xD5, 0xB5, 0xD5, 0xB6 };
48 : static const symbol s_0_18[6] = { 0xD5, 0xBA, 0xD5, 0xA5, 0xD5, 0xBD };
49 : static const symbol s_0_19[4] = { 0xD5, 0xAB, 0xD5, 0xBE };
50 : static const symbol s_0_20[4] = { 0xD5, 0xA1, 0xD5, 0xBF };
51 : static const symbol s_0_21[8] = { 0xD5, 0xA1, 0xD5, 0xBE, 0xD5, 0xA5, 0xD5, 0xBF };
52 : static const symbol s_0_22[6] = { 0xD5, 0xAF, 0xD5, 0xB8, 0xD5, 0xBF };
53 :
54 : static const struct among a_0[23] =
55 : {
56 : { 6, s_0_0, -1, 1, 0},
57 : { 8, s_0_1, -1, 1, 0},
58 : { 10, s_0_2, 1, 1, 0},
59 : { 6, s_0_3, -1, 1, 0},
60 : { 6, s_0_4, -1, 1, 0},
61 : { 8, s_0_5, -1, 1, 0},
62 : { 4, s_0_6, -1, 1, 0},
63 : { 8, s_0_7, -1, 1, 0},
64 : { 8, s_0_8, -1, 1, 0},
65 : { 8, s_0_9, -1, 1, 0},
66 : { 4, s_0_10, -1, 1, 0},
67 : { 8, s_0_11, 10, 1, 0},
68 : { 8, s_0_12, 10, 1, 0},
69 : { 8, s_0_13, -1, 1, 0},
70 : { 4, s_0_14, -1, 1, 0},
71 : { 6, s_0_15, 14, 1, 0},
72 : { 8, s_0_16, 14, 1, 0},
73 : { 8, s_0_17, -1, 1, 0},
74 : { 6, s_0_18, -1, 1, 0},
75 : { 4, s_0_19, -1, 1, 0},
76 : { 4, s_0_20, -1, 1, 0},
77 : { 8, s_0_21, -1, 1, 0},
78 : { 6, s_0_22, -1, 1, 0}
79 : };
80 :
81 : static const symbol s_1_0[4] = { 0xD5, 0xA1, 0xD6, 0x80 };
82 : static const symbol s_1_1[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD6, 0x80 };
83 : static const symbol s_1_2[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xA1, 0xD6, 0x80 };
84 : static const symbol s_1_3[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB, 0xD6, 0x80 };
85 : static const symbol s_1_4[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x80 };
86 : static const symbol s_1_5[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x80 };
87 : static const symbol s_1_6[10] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x80 };
88 : static const symbol s_1_7[10] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xB8, 0xD6, 0x82, 0xD6, 0x81 };
89 : static const symbol s_1_8[10] = { 0xD5, 0xA5, 0xD5, 0xAC, 0xD5, 0xB8, 0xD6, 0x82, 0xD6, 0x81 };
90 : static const symbol s_1_9[4] = { 0xD5, 0xA1, 0xD6, 0x81 };
91 : static const symbol s_1_10[4] = { 0xD5, 0xA5, 0xD6, 0x81 };
92 : static const symbol s_1_11[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xA5, 0xD6, 0x81 };
93 : static const symbol s_1_12[8] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xB8, 0xD6, 0x82 };
94 : static const symbol s_1_13[8] = { 0xD5, 0xA5, 0xD5, 0xAC, 0xD5, 0xB8, 0xD6, 0x82 };
95 : static const symbol s_1_14[4] = { 0xD5, 0xA1, 0xD6, 0x84 };
96 : static const symbol s_1_15[6] = { 0xD6, 0x81, 0xD5, 0xA1, 0xD6, 0x84 };
97 : static const symbol s_1_16[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD6, 0x84 };
98 : static const symbol s_1_17[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB, 0xD6, 0x84 };
99 : static const symbol s_1_18[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x84 };
100 : static const symbol s_1_19[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x84 };
101 : static const symbol s_1_20[10] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x84 };
102 : static const symbol s_1_21[6] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD6, 0x84 };
103 : static const symbol s_1_22[8] = { 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xB6, 0xD6, 0x84 };
104 : static const symbol s_1_23[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xB6, 0xD6, 0x84 };
105 : static const symbol s_1_24[12] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB, 0xD5, 0xB6, 0xD6, 0x84 };
106 : static const symbol s_1_25[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6, 0xD6, 0x84 };
107 : static const symbol s_1_26[10] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6, 0xD6, 0x84 };
108 : static const symbol s_1_27[12] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6, 0xD6, 0x84 };
109 : static const symbol s_1_28[2] = { 0xD5, 0xA1 };
110 : static const symbol s_1_29[6] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1 };
111 : static const symbol s_1_30[6] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xA1 };
112 : static const symbol s_1_31[4] = { 0xD5, 0xBE, 0xD5, 0xA5 };
113 : static const symbol s_1_32[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB };
114 : static const symbol s_1_33[6] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB };
115 : static const symbol s_1_34[6] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB };
116 : static const symbol s_1_35[8] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB };
117 : static const symbol s_1_36[4] = { 0xD5, 0xA1, 0xD5, 0xAC };
118 : static const symbol s_1_37[6] = { 0xD5, 0xA8, 0xD5, 0xA1, 0xD5, 0xAC };
119 : static const symbol s_1_38[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xB6, 0xD5, 0xA1, 0xD5, 0xAC };
120 : static const symbol s_1_39[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA1, 0xD5, 0xAC };
121 : static const symbol s_1_40[8] = { 0xD5, 0xA5, 0xD5, 0xB6, 0xD5, 0xA1, 0xD5, 0xAC };
122 : static const symbol s_1_41[4] = { 0xD5, 0xA5, 0xD5, 0xAC };
123 : static const symbol s_1_42[6] = { 0xD5, 0xA8, 0xD5, 0xA5, 0xD5, 0xAC };
124 : static const symbol s_1_43[6] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD5, 0xAC };
125 : static const symbol s_1_44[8] = { 0xD6, 0x81, 0xD5, 0xB6, 0xD5, 0xA5, 0xD5, 0xAC };
126 : static const symbol s_1_45[10] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xB6, 0xD5, 0xA5, 0xD5, 0xAC };
127 : static const symbol s_1_46[6] = { 0xD5, 0xB9, 0xD5, 0xA5, 0xD5, 0xAC };
128 : static const symbol s_1_47[6] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD5, 0xAC };
129 : static const symbol s_1_48[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xBE, 0xD5, 0xA5, 0xD5, 0xAC };
130 : static const symbol s_1_49[10] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xBE, 0xD5, 0xA5, 0xD5, 0xAC };
131 : static const symbol s_1_50[6] = { 0xD5, 0xBF, 0xD5, 0xA5, 0xD5, 0xAC };
132 : static const symbol s_1_51[8] = { 0xD5, 0xA1, 0xD5, 0xBF, 0xD5, 0xA5, 0xD5, 0xAC };
133 : static const symbol s_1_52[8] = { 0xD5, 0xB8, 0xD5, 0xBF, 0xD5, 0xA5, 0xD5, 0xAC };
134 : static const symbol s_1_53[10] = { 0xD5, 0xAF, 0xD5, 0xB8, 0xD5, 0xBF, 0xD5, 0xA5, 0xD5, 0xAC };
135 : static const symbol s_1_54[6] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xAE };
136 : static const symbol s_1_55[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
137 : static const symbol s_1_56[8] = { 0xD5, 0xBE, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
138 : static const symbol s_1_57[4] = { 0xD5, 0xA1, 0xD5, 0xB6 };
139 : static const symbol s_1_58[6] = { 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xB6 };
140 : static const symbol s_1_59[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xB6 };
141 : static const symbol s_1_60[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB, 0xD5, 0xB6 };
142 : static const symbol s_1_61[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6 };
143 : static const symbol s_1_62[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6 };
144 : static const symbol s_1_63[10] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6 };
145 : static const symbol s_1_64[8] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xAB, 0xD5, 0xBD };
146 : static const symbol s_1_65[8] = { 0xD5, 0xA5, 0xD5, 0xAC, 0xD5, 0xAB, 0xD5, 0xBD };
147 : static const symbol s_1_66[4] = { 0xD5, 0xA1, 0xD5, 0xBE };
148 : static const symbol s_1_67[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xBE };
149 : static const symbol s_1_68[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xBE };
150 : static const symbol s_1_69[8] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xB8, 0xD5, 0xBE };
151 : static const symbol s_1_70[8] = { 0xD5, 0xA5, 0xD5, 0xAC, 0xD5, 0xB8, 0xD5, 0xBE };
152 :
153 : static const struct among a_1[71] =
154 : {
155 : { 4, s_1_0, -1, 1, 0},
156 : { 8, s_1_1, 0, 1, 0},
157 : { 8, s_1_2, 0, 1, 0},
158 : { 10, s_1_3, -1, 1, 0},
159 : { 8, s_1_4, -1, 1, 0},
160 : { 8, s_1_5, -1, 1, 0},
161 : { 10, s_1_6, 5, 1, 0},
162 : { 10, s_1_7, -1, 1, 0},
163 : { 10, s_1_8, -1, 1, 0},
164 : { 4, s_1_9, -1, 1, 0},
165 : { 4, s_1_10, -1, 1, 0},
166 : { 10, s_1_11, 10, 1, 0},
167 : { 8, s_1_12, -1, 1, 0},
168 : { 8, s_1_13, -1, 1, 0},
169 : { 4, s_1_14, -1, 1, 0},
170 : { 6, s_1_15, 14, 1, 0},
171 : { 8, s_1_16, 15, 1, 0},
172 : { 10, s_1_17, -1, 1, 0},
173 : { 8, s_1_18, -1, 1, 0},
174 : { 8, s_1_19, -1, 1, 0},
175 : { 10, s_1_20, 19, 1, 0},
176 : { 6, s_1_21, -1, 1, 0},
177 : { 8, s_1_22, 21, 1, 0},
178 : { 10, s_1_23, 22, 1, 0},
179 : { 12, s_1_24, -1, 1, 0},
180 : { 10, s_1_25, -1, 1, 0},
181 : { 10, s_1_26, -1, 1, 0},
182 : { 12, s_1_27, 26, 1, 0},
183 : { 2, s_1_28, -1, 1, 0},
184 : { 6, s_1_29, 28, 1, 0},
185 : { 6, s_1_30, 28, 1, 0},
186 : { 4, s_1_31, -1, 1, 0},
187 : { 8, s_1_32, -1, 1, 0},
188 : { 6, s_1_33, -1, 1, 0},
189 : { 6, s_1_34, -1, 1, 0},
190 : { 8, s_1_35, 34, 1, 0},
191 : { 4, s_1_36, -1, 1, 0},
192 : { 6, s_1_37, 36, 1, 0},
193 : { 10, s_1_38, 36, 1, 0},
194 : { 8, s_1_39, 36, 1, 0},
195 : { 8, s_1_40, 36, 1, 0},
196 : { 4, s_1_41, -1, 1, 0},
197 : { 6, s_1_42, 41, 1, 0},
198 : { 6, s_1_43, 41, 1, 0},
199 : { 8, s_1_44, 43, 1, 0},
200 : { 10, s_1_45, 44, 1, 0},
201 : { 6, s_1_46, 41, 1, 0},
202 : { 6, s_1_47, 41, 1, 0},
203 : { 10, s_1_48, 47, 1, 0},
204 : { 10, s_1_49, 47, 1, 0},
205 : { 6, s_1_50, 41, 1, 0},
206 : { 8, s_1_51, 50, 1, 0},
207 : { 8, s_1_52, 50, 1, 0},
208 : { 10, s_1_53, 52, 1, 0},
209 : { 6, s_1_54, -1, 1, 0},
210 : { 6, s_1_55, -1, 1, 0},
211 : { 8, s_1_56, 55, 1, 0},
212 : { 4, s_1_57, -1, 1, 0},
213 : { 6, s_1_58, 57, 1, 0},
214 : { 8, s_1_59, 58, 1, 0},
215 : { 10, s_1_60, -1, 1, 0},
216 : { 8, s_1_61, -1, 1, 0},
217 : { 8, s_1_62, -1, 1, 0},
218 : { 10, s_1_63, 62, 1, 0},
219 : { 8, s_1_64, -1, 1, 0},
220 : { 8, s_1_65, -1, 1, 0},
221 : { 4, s_1_66, -1, 1, 0},
222 : { 8, s_1_67, 66, 1, 0},
223 : { 8, s_1_68, 66, 1, 0},
224 : { 8, s_1_69, -1, 1, 0},
225 : { 8, s_1_70, -1, 1, 0}
226 : };
227 :
228 : static const symbol s_2_0[6] = { 0xD5, 0xA3, 0xD5, 0xA1, 0xD6, 0x80 };
229 : static const symbol s_2_1[6] = { 0xD5, 0xBE, 0xD5, 0xB8, 0xD6, 0x80 };
230 : static const symbol s_2_2[8] = { 0xD5, 0xA1, 0xD5, 0xBE, 0xD5, 0xB8, 0xD6, 0x80 };
231 : static const symbol s_2_3[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD6, 0x85, 0xD6, 0x81 };
232 : static const symbol s_2_4[4] = { 0xD5, 0xB8, 0xD6, 0x81 };
233 : static const symbol s_2_5[4] = { 0xD5, 0xB8, 0xD6, 0x82 };
234 : static const symbol s_2_6[2] = { 0xD6, 0x84 };
235 : static const symbol s_2_7[6] = { 0xD5, 0xA1, 0xD6, 0x80, 0xD6, 0x84 };
236 : static const symbol s_2_8[6] = { 0xD5, 0xB9, 0xD5, 0xA5, 0xD6, 0x84 };
237 : static const symbol s_2_9[4] = { 0xD5, 0xAB, 0xD6, 0x84 };
238 : static const symbol s_2_10[8] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xAB, 0xD6, 0x84 };
239 : static const symbol s_2_11[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xAB, 0xD6, 0x84 };
240 : static const symbol s_2_12[8] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xAE, 0xD6, 0x84 };
241 : static const symbol s_2_13[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB5, 0xD6, 0x84 };
242 : static const symbol s_2_14[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6, 0xD6, 0x84 };
243 : static const symbol s_2_15[10] = { 0xD5, 0xB4, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6, 0xD6, 0x84 };
244 : static const symbol s_2_16[6] = { 0xD5, 0xA5, 0xD5, 0xB6, 0xD6, 0x84 };
245 : static const symbol s_2_17[6] = { 0xD5, 0xB8, 0xD5, 0xB6, 0xD6, 0x84 };
246 : static const symbol s_2_18[6] = { 0xD5, 0xAB, 0xD5, 0xB9, 0xD6, 0x84 };
247 : static const symbol s_2_19[6] = { 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA4 };
248 : static const symbol s_2_20[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB5, 0xD5, 0xA9 };
249 : static const symbol s_2_21[4] = { 0xD6, 0x81, 0xD5, 0xAB };
250 : static const symbol s_2_22[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB0, 0xD5, 0xAB };
251 : static const symbol s_2_23[4] = { 0xD5, 0xAB, 0xD5, 0xAC };
252 : static const symbol s_2_24[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xAF };
253 : static const symbol s_2_25[4] = { 0xD5, 0xA1, 0xD5, 0xAF };
254 : static const symbol s_2_26[6] = { 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xAF };
255 : static const symbol s_2_27[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA1, 0xD5, 0xAF };
256 : static const symbol s_2_28[4] = { 0xD5, 0xAB, 0xD5, 0xAF };
257 : static const symbol s_2_29[8] = { 0xD5, 0xB5, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6 };
258 : static const symbol s_2_30[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6 };
259 : static const symbol s_2_31[4] = { 0xD5, 0xA1, 0xD5, 0xB6 };
260 : static const symbol s_2_32[8] = { 0xD5, 0xA1, 0xD6, 0x80, 0xD5, 0xA1, 0xD5, 0xB6 };
261 : static const symbol s_2_33[6] = { 0xD5, 0xBA, 0xD5, 0xA1, 0xD5, 0xB6 };
262 : static const symbol s_2_34[8] = { 0xD5, 0xBD, 0xD5, 0xBF, 0xD5, 0xA1, 0xD5, 0xB6 };
263 : static const symbol s_2_35[8] = { 0xD5, 0xA5, 0xD5, 0xB2, 0xD5, 0xA7, 0xD5, 0xB6 };
264 : static const symbol s_2_36[6] = { 0xD5, 0xA1, 0xD5, 0xAE, 0xD5, 0xB8 };
265 : static const symbol s_2_37[4] = { 0xD5, 0xAB, 0xD5, 0xB9 };
266 : static const symbol s_2_38[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xBD };
267 : static const symbol s_2_39[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xBD, 0xD5, 0xBF };
268 :
269 : static const struct among a_2[40] =
270 : {
271 : { 6, s_2_0, -1, 1, 0},
272 : { 6, s_2_1, -1, 1, 0},
273 : { 8, s_2_2, 1, 1, 0},
274 : { 8, s_2_3, -1, 1, 0},
275 : { 4, s_2_4, -1, 1, 0},
276 : { 4, s_2_5, -1, 1, 0},
277 : { 2, s_2_6, -1, 1, 0},
278 : { 6, s_2_7, 6, 1, 0},
279 : { 6, s_2_8, 6, 1, 0},
280 : { 4, s_2_9, 6, 1, 0},
281 : { 8, s_2_10, 9, 1, 0},
282 : { 8, s_2_11, 9, 1, 0},
283 : { 8, s_2_12, 6, 1, 0},
284 : { 8, s_2_13, 6, 1, 0},
285 : { 8, s_2_14, 6, 1, 0},
286 : { 10, s_2_15, 14, 1, 0},
287 : { 6, s_2_16, 6, 1, 0},
288 : { 6, s_2_17, 6, 1, 0},
289 : { 6, s_2_18, 6, 1, 0},
290 : { 6, s_2_19, -1, 1, 0},
291 : { 8, s_2_20, -1, 1, 0},
292 : { 4, s_2_21, -1, 1, 0},
293 : { 8, s_2_22, -1, 1, 0},
294 : { 4, s_2_23, -1, 1, 0},
295 : { 6, s_2_24, -1, 1, 0},
296 : { 4, s_2_25, -1, 1, 0},
297 : { 6, s_2_26, 25, 1, 0},
298 : { 8, s_2_27, 25, 1, 0},
299 : { 4, s_2_28, -1, 1, 0},
300 : { 8, s_2_29, -1, 1, 0},
301 : { 14, s_2_30, 29, 1, 0},
302 : { 4, s_2_31, -1, 1, 0},
303 : { 8, s_2_32, 31, 1, 0},
304 : { 6, s_2_33, 31, 1, 0},
305 : { 8, s_2_34, 31, 1, 0},
306 : { 8, s_2_35, -1, 1, 0},
307 : { 6, s_2_36, -1, 1, 0},
308 : { 4, s_2_37, -1, 1, 0},
309 : { 6, s_2_38, -1, 1, 0},
310 : { 8, s_2_39, -1, 1, 0}
311 : };
312 :
313 : static const symbol s_3_0[4] = { 0xD5, 0xA5, 0xD6, 0x80 };
314 : static const symbol s_3_1[6] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80 };
315 : static const symbol s_3_2[2] = { 0xD6, 0x81 };
316 : static const symbol s_3_3[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD6, 0x81 };
317 : static const symbol s_3_4[4] = { 0xD5, 0xAB, 0xD6, 0x81 };
318 : static const symbol s_3_5[8] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB, 0xD6, 0x81 };
319 : static const symbol s_3_6[10] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB, 0xD6, 0x81 };
320 : static const symbol s_3_7[6] = { 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x81 };
321 : static const symbol s_3_8[10] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xAB, 0xD6, 0x81 };
322 : static const symbol s_3_9[8] = { 0xD5, 0xB8, 0xD5, 0xBB, 0xD5, 0xAB, 0xD6, 0x81 };
323 : static const symbol s_3_10[6] = { 0xD5, 0xBE, 0xD5, 0xAB, 0xD6, 0x81 };
324 : static const symbol s_3_11[4] = { 0xD5, 0xB8, 0xD6, 0x81 };
325 : static const symbol s_3_12[4] = { 0xD5, 0xBD, 0xD5, 0xA1 };
326 : static const symbol s_3_13[4] = { 0xD5, 0xBE, 0xD5, 0xA1 };
327 : static const symbol s_3_14[6] = { 0xD5, 0xA1, 0xD5, 0xB4, 0xD5, 0xA2 };
328 : static const symbol s_3_15[2] = { 0xD5, 0xA4 };
329 : static const symbol s_3_16[6] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA4 };
330 : static const symbol s_3_17[8] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA4 };
331 : static const symbol s_3_18[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA4 };
332 : static const symbol s_3_19[6] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA4 };
333 : static const symbol s_3_20[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA4 };
334 : static const symbol s_3_21[8] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA4 };
335 : static const symbol s_3_22[6] = { 0xD5, 0xB8, 0xD5, 0xBB, 0xD5, 0xA4 };
336 : static const symbol s_3_23[2] = { 0xD5, 0xA8 };
337 : static const symbol s_3_24[6] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA8 };
338 : static const symbol s_3_25[8] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA8 };
339 : static const symbol s_3_26[6] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA8 };
340 : static const symbol s_3_27[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA8 };
341 : static const symbol s_3_28[8] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA8 };
342 : static const symbol s_3_29[6] = { 0xD5, 0xB8, 0xD5, 0xBB, 0xD5, 0xA8 };
343 : static const symbol s_3_30[2] = { 0xD5, 0xAB };
344 : static const symbol s_3_31[6] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB };
345 : static const symbol s_3_32[8] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB };
346 : static const symbol s_3_33[4] = { 0xD5, 0xBE, 0xD5, 0xAB };
347 : static const symbol s_3_34[10] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
348 : static const symbol s_3_35[12] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
349 : static const symbol s_3_36[10] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
350 : static const symbol s_3_37[2] = { 0xD5, 0xB6 };
351 : static const symbol s_3_38[6] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB6 };
352 : static const symbol s_3_39[8] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB6 };
353 : static const symbol s_3_40[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6 };
354 : static const symbol s_3_41[4] = { 0xD5, 0xA1, 0xD5, 0xB6 };
355 : static const symbol s_3_42[12] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6 };
356 : static const symbol s_3_43[6] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6 };
357 : static const symbol s_3_44[4] = { 0xD5, 0xAB, 0xD5, 0xB6 };
358 : static const symbol s_3_45[8] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB, 0xD5, 0xB6 };
359 : static const symbol s_3_46[10] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB, 0xD5, 0xB6 };
360 : static const symbol s_3_47[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xB6 };
361 : static const symbol s_3_48[4] = { 0xD5, 0xB8, 0xD5, 0xBB };
362 : static const symbol s_3_49[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xBD };
363 : static const symbol s_3_50[8] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xBD };
364 : static const symbol s_3_51[6] = { 0xD5, 0xB8, 0xD5, 0xBB, 0xD5, 0xBD };
365 : static const symbol s_3_52[4] = { 0xD5, 0xB8, 0xD5, 0xBE };
366 : static const symbol s_3_53[8] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD5, 0xBE };
367 : static const symbol s_3_54[10] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD5, 0xBE };
368 : static const symbol s_3_55[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xB8, 0xD5, 0xBE };
369 : static const symbol s_3_56[6] = { 0xD5, 0xBE, 0xD5, 0xB8, 0xD5, 0xBE };
370 :
371 : static const struct among a_3[57] =
372 : {
373 : { 4, s_3_0, -1, 1, 0},
374 : { 6, s_3_1, 0, 1, 0},
375 : { 2, s_3_2, -1, 1, 0},
376 : { 6, s_3_3, 2, 1, 0},
377 : { 4, s_3_4, 2, 1, 0},
378 : { 8, s_3_5, 4, 1, 0},
379 : { 10, s_3_6, 5, 1, 0},
380 : { 6, s_3_7, 4, 1, 0},
381 : { 10, s_3_8, 4, 1, 0},
382 : { 8, s_3_9, 4, 1, 0},
383 : { 6, s_3_10, 4, 1, 0},
384 : { 4, s_3_11, 2, 1, 0},
385 : { 4, s_3_12, -1, 1, 0},
386 : { 4, s_3_13, -1, 1, 0},
387 : { 6, s_3_14, -1, 1, 0},
388 : { 2, s_3_15, -1, 1, 0},
389 : { 6, s_3_16, 15, 1, 0},
390 : { 8, s_3_17, 16, 1, 0},
391 : { 6, s_3_18, 15, 1, 0},
392 : { 6, s_3_19, 15, 1, 0},
393 : { 14, s_3_20, 19, 1, 0},
394 : { 8, s_3_21, 19, 1, 0},
395 : { 6, s_3_22, 15, 1, 0},
396 : { 2, s_3_23, -1, 1, 0},
397 : { 6, s_3_24, 23, 1, 0},
398 : { 8, s_3_25, 24, 1, 0},
399 : { 6, s_3_26, 23, 1, 0},
400 : { 14, s_3_27, 26, 1, 0},
401 : { 8, s_3_28, 26, 1, 0},
402 : { 6, s_3_29, 23, 1, 0},
403 : { 2, s_3_30, -1, 1, 0},
404 : { 6, s_3_31, 30, 1, 0},
405 : { 8, s_3_32, 31, 1, 0},
406 : { 4, s_3_33, 30, 1, 0},
407 : { 10, s_3_34, -1, 1, 0},
408 : { 12, s_3_35, 34, 1, 0},
409 : { 10, s_3_36, -1, 1, 0},
410 : { 2, s_3_37, -1, 1, 0},
411 : { 6, s_3_38, 37, 1, 0},
412 : { 8, s_3_39, 38, 1, 0},
413 : { 6, s_3_40, 37, 1, 0},
414 : { 4, s_3_41, 37, 1, 0},
415 : { 12, s_3_42, 41, 1, 0},
416 : { 6, s_3_43, 41, 1, 0},
417 : { 4, s_3_44, 37, 1, 0},
418 : { 8, s_3_45, 44, 1, 0},
419 : { 10, s_3_46, 45, 1, 0},
420 : { 14, s_3_47, 37, 1, 0},
421 : { 4, s_3_48, -1, 1, 0},
422 : { 14, s_3_49, -1, 1, 0},
423 : { 8, s_3_50, -1, 1, 0},
424 : { 6, s_3_51, -1, 1, 0},
425 : { 4, s_3_52, -1, 1, 0},
426 : { 8, s_3_53, 52, 1, 0},
427 : { 10, s_3_54, 53, 1, 0},
428 : { 8, s_3_55, 52, 1, 0},
429 : { 6, s_3_56, 52, 1, 0}
430 : };
431 :
432 : static const unsigned char g_v[] = { 209, 4, 128, 0, 18 };
433 :
434 :
435 0 : static int r_mark_regions(struct SN_env * z) {
436 0 : z->I[1] = z->l;
437 0 : z->I[0] = z->l;
438 0 : { int c1 = z->c;
439 : {
440 0 : int ret = out_grouping_U(z, g_v, 1377, 1413, 1);
441 0 : if (ret < 0) goto lab0;
442 0 : z->c += ret;
443 : }
444 0 : z->I[1] = z->c;
445 : {
446 0 : int ret = in_grouping_U(z, g_v, 1377, 1413, 1);
447 0 : if (ret < 0) goto lab0;
448 0 : z->c += ret;
449 : }
450 : {
451 0 : int ret = out_grouping_U(z, g_v, 1377, 1413, 1);
452 0 : if (ret < 0) goto lab0;
453 0 : z->c += ret;
454 : }
455 : {
456 0 : int ret = in_grouping_U(z, g_v, 1377, 1413, 1);
457 0 : if (ret < 0) goto lab0;
458 0 : z->c += ret;
459 : }
460 0 : z->I[0] = z->c;
461 0 : lab0:
462 0 : z->c = c1;
463 : }
464 0 : return 1;
465 : }
466 :
467 0 : static int r_R2(struct SN_env * z) {
468 0 : if (!(z->I[0] <= z->c)) return 0;
469 0 : return 1;
470 : }
471 :
472 0 : static int r_adjective(struct SN_env * z) {
473 0 : z->ket = z->c;
474 0 : if (!(find_among_b(z, a_0, 23))) return 0;
475 0 : z->bra = z->c;
476 0 : { int ret = slice_del(z);
477 0 : if (ret < 0) return ret;
478 : }
479 0 : return 1;
480 : }
481 :
482 0 : static int r_verb(struct SN_env * z) {
483 0 : z->ket = z->c;
484 0 : if (!(find_among_b(z, a_1, 71))) return 0;
485 0 : z->bra = z->c;
486 0 : { int ret = slice_del(z);
487 0 : if (ret < 0) return ret;
488 : }
489 0 : return 1;
490 : }
491 :
492 0 : static int r_noun(struct SN_env * z) {
493 0 : z->ket = z->c;
494 0 : if (!(find_among_b(z, a_2, 40))) return 0;
495 0 : z->bra = z->c;
496 0 : { int ret = slice_del(z);
497 0 : if (ret < 0) return ret;
498 : }
499 0 : return 1;
500 : }
501 :
502 0 : static int r_ending(struct SN_env * z) {
503 0 : z->ket = z->c;
504 0 : if (!(find_among_b(z, a_3, 57))) return 0;
505 0 : z->bra = z->c;
506 0 : { int ret = r_R2(z);
507 0 : if (ret <= 0) return ret;
508 : }
509 0 : { int ret = slice_del(z);
510 0 : if (ret < 0) return ret;
511 : }
512 0 : return 1;
513 : }
514 :
515 0 : extern int armenian_UTF_8_stem(struct SN_env * z) {
516 :
517 0 : { int ret = r_mark_regions(z);
518 0 : if (ret < 0) return ret;
519 : }
520 0 : z->lb = z->c; z->c = z->l;
521 :
522 :
523 : { int mlimit1;
524 0 : if (z->c < z->I[1]) return 0;
525 0 : mlimit1 = z->lb; z->lb = z->I[1];
526 0 : { int m2 = z->l - z->c; (void)m2;
527 0 : { int ret = r_ending(z);
528 0 : if (ret < 0) return ret;
529 : }
530 0 : z->c = z->l - m2;
531 : }
532 0 : { int m3 = z->l - z->c; (void)m3;
533 0 : { int ret = r_verb(z);
534 0 : if (ret < 0) return ret;
535 : }
536 0 : z->c = z->l - m3;
537 : }
538 0 : { int m4 = z->l - z->c; (void)m4;
539 0 : { int ret = r_adjective(z);
540 0 : if (ret < 0) return ret;
541 : }
542 0 : z->c = z->l - m4;
543 : }
544 0 : { int m5 = z->l - z->c; (void)m5;
545 0 : { int ret = r_noun(z);
546 0 : if (ret < 0) return ret;
547 : }
548 0 : z->c = z->l - m5;
549 : }
550 0 : z->lb = mlimit1;
551 : }
552 0 : z->c = z->lb;
553 0 : return 1;
554 : }
555 :
556 0 : extern struct SN_env * armenian_UTF_8_create_env(void) { return SN_create_env(0, 2); }
557 :
558 0 : extern void armenian_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }
559 :
|