isomorfeus-ferret 0.12.2 → 0.12.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +612 -612
- data/README.md +80 -44
- data/ext/isomorfeus_ferret_ext/bm_hash.c +9 -6
- data/ext/isomorfeus_ferret_ext/bm_micro_string.c +4 -2
- data/ext/isomorfeus_ferret_ext/frb_search.c +14 -2
- data/ext/isomorfeus_ferret_ext/frb_store.c +34 -5
- data/ext/isomorfeus_ferret_ext/frt_posh.h +11 -19
- data/ext/isomorfeus_ferret_ext/frt_q_parser.c +1844 -1911
- data/ext/isomorfeus_ferret_ext/frt_q_phrase.c +12 -15
- data/ext/isomorfeus_ferret_ext/frt_scanner.c +1 -0
- data/ext/isomorfeus_ferret_ext/frt_scanner_mb.c +1 -0
- data/ext/isomorfeus_ferret_ext/frt_scanner_utf8.c +1 -0
- data/ext/isomorfeus_ferret_ext/frt_search.h +1 -1
- data/ext/isomorfeus_ferret_ext/libstemmer.c +14 -11
- data/ext/isomorfeus_ferret_ext/libstemmer.h +4 -9
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_basque.c +1167 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_basque.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_catalan.c +1433 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_catalan.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.c +120 -143
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.h +1 -2
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.c +217 -237
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.c +377 -432
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.c +298 -342
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.h +1 -2
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.c +530 -524
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.c +201 -214
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_hungarian.c +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_indonesian.c +394 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_indonesian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_irish.c +457 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_irish.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.c +396 -439
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.c +104 -128
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.c +242 -273
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.c +406 -461
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.h +1 -2
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.c +405 -456
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.c +108 -126
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_hungarian.c +849 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_hungarian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.c +373 -405
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.c +288 -305
- data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_arabic.c +1651 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_arabic.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_armenian.c +546 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_armenian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_basque.c +1171 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_basque.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_catalan.c +1436 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_catalan.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_danish.c +121 -141
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_danish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_dutch.c +221 -241
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_dutch.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_english.c +381 -431
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_english.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_finnish.c +300 -345
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_finnish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_french.c +518 -511
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_french.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_german.c +201 -209
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_german.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_greek.c +3660 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_greek.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_hindi.c +309 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_hindi.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_hungarian.c +306 -671
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_hungarian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_indonesian.c +394 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_indonesian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_irish.c +457 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_irish.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_italian.c +400 -442
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_italian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_lithuanian.c +824 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_lithuanian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_nepali.c +408 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_nepali.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_norwegian.c +105 -127
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_norwegian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_porter.c +245 -276
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_porter.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_portuguese.c +409 -464
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_portuguese.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_romanian.c +376 -408
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_romanian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_russian.c +272 -287
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_russian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_serbian.c +6530 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_serbian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_spanish.c +407 -458
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_spanish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_swedish.c +110 -125
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_swedish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_tamil.c +1865 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_tamil.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_turkish.c +698 -806
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_turkish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_yiddish.c +1220 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_yiddish.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_api.c +1 -9
- data/ext/isomorfeus_ferret_ext/stem_api.h +1 -3
- data/ext/isomorfeus_ferret_ext/stem_header.h +30 -26
- data/ext/isomorfeus_ferret_ext/stem_modules.h +113 -26
- data/ext/isomorfeus_ferret_ext/stem_modules.txt +18 -5
- data/ext/isomorfeus_ferret_ext/stem_utilities.c +167 -132
- data/ext/isomorfeus_ferret_ext/test.c +7 -1
- data/ext/isomorfeus_ferret_ext/test_search.c +0 -1
- data/lib/isomorfeus/ferret/index/index.rb +1 -1
- data/lib/isomorfeus/ferret/version.rb +1 -1
- metadata +43 -7
- data/ext/isomorfeus_ferret_ext/q_parser.y +0 -1366
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
/* This file was generated automatically by the Snowball to ANSI C compiler */
|
1
|
+
/* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
|
3
2
|
|
4
3
|
#include "stem_header.h"
|
5
4
|
|
@@ -27,21 +26,27 @@ static const symbol s_0_2[3] = { 't', 'a', 'p' };
|
|
27
26
|
|
28
27
|
static const struct among a_0[3] =
|
29
28
|
{
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
{ 3, s_0_0, -1, -1, 0},
|
30
|
+
{ 3, s_0_1, -1, -1, 0},
|
31
|
+
{ 3, s_0_2, -1, -1, 0}
|
33
32
|
};
|
34
33
|
|
35
|
-
static const symbol s_1_1[1] = { '
|
36
|
-
static const symbol s_1_2[
|
37
|
-
static const symbol s_1_3[
|
34
|
+
static const symbol s_1_1[1] = { 'H' };
|
35
|
+
static const symbol s_1_2[2] = { 'H', 'e' };
|
36
|
+
static const symbol s_1_3[2] = { 'H', 'i' };
|
37
|
+
static const symbol s_1_4[1] = { 'I' };
|
38
|
+
static const symbol s_1_5[1] = { 'U' };
|
39
|
+
static const symbol s_1_6[1] = { 'Y' };
|
38
40
|
|
39
|
-
static const struct among a_1[
|
41
|
+
static const struct among a_1[7] =
|
40
42
|
{
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
{ 0, 0, -1, 7, 0},
|
44
|
+
{ 1, s_1_1, 0, 6, 0},
|
45
|
+
{ 2, s_1_2, 1, 4, 0},
|
46
|
+
{ 2, s_1_3, 1, 5, 0},
|
47
|
+
{ 1, s_1_4, 0, 1, 0},
|
48
|
+
{ 1, s_1_5, 0, 2, 0},
|
49
|
+
{ 1, s_1_6, 0, 3, 0}
|
45
50
|
};
|
46
51
|
|
47
52
|
static const symbol s_2_0[3] = { 'i', 'q', 'U' };
|
@@ -53,12 +58,12 @@ static const symbol s_2_5[2] = { 'i', 'v' };
|
|
53
58
|
|
54
59
|
static const struct among a_2[6] =
|
55
60
|
{
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
61
|
+
{ 3, s_2_0, -1, 3, 0},
|
62
|
+
{ 3, s_2_1, -1, 3, 0},
|
63
|
+
{ 3, s_2_2, -1, 4, 0},
|
64
|
+
{ 3, s_2_3, -1, 4, 0},
|
65
|
+
{ 3, s_2_4, -1, 2, 0},
|
66
|
+
{ 2, s_2_5, -1, 1, 0}
|
62
67
|
};
|
63
68
|
|
64
69
|
static const symbol s_3_0[2] = { 'i', 'c' };
|
@@ -67,9 +72,9 @@ static const symbol s_3_2[2] = { 'i', 'v' };
|
|
67
72
|
|
68
73
|
static const struct among a_3[3] =
|
69
74
|
{
|
70
|
-
|
71
|
-
|
72
|
-
|
75
|
+
{ 2, s_3_0, -1, 2, 0},
|
76
|
+
{ 4, s_3_1, -1, 1, 0},
|
77
|
+
{ 2, s_3_2, -1, 3, 0}
|
73
78
|
};
|
74
79
|
|
75
80
|
static const symbol s_4_0[4] = { 'i', 'q', 'U', 'e' };
|
@@ -118,49 +123,49 @@ static const symbol s_4_42[3] = { 'i', 't', 0xE9 };
|
|
118
123
|
|
119
124
|
static const struct among a_4[43] =
|
120
125
|
{
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
126
|
+
{ 4, s_4_0, -1, 1, 0},
|
127
|
+
{ 6, s_4_1, -1, 2, 0},
|
128
|
+
{ 4, s_4_2, -1, 1, 0},
|
129
|
+
{ 4, s_4_3, -1, 5, 0},
|
130
|
+
{ 5, s_4_4, -1, 3, 0},
|
131
|
+
{ 4, s_4_5, -1, 1, 0},
|
132
|
+
{ 4, s_4_6, -1, 1, 0},
|
133
|
+
{ 4, s_4_7, -1, 11, 0},
|
134
|
+
{ 4, s_4_8, -1, 1, 0},
|
135
|
+
{ 3, s_4_9, -1, 8, 0},
|
136
|
+
{ 2, s_4_10, -1, 8, 0},
|
137
|
+
{ 5, s_4_11, -1, 4, 0},
|
138
|
+
{ 5, s_4_12, -1, 2, 0},
|
139
|
+
{ 5, s_4_13, -1, 4, 0},
|
140
|
+
{ 5, s_4_14, -1, 2, 0},
|
141
|
+
{ 5, s_4_15, -1, 1, 0},
|
142
|
+
{ 7, s_4_16, -1, 2, 0},
|
143
|
+
{ 5, s_4_17, -1, 1, 0},
|
144
|
+
{ 5, s_4_18, -1, 5, 0},
|
145
|
+
{ 6, s_4_19, -1, 3, 0},
|
146
|
+
{ 5, s_4_20, -1, 1, 0},
|
147
|
+
{ 5, s_4_21, -1, 1, 0},
|
148
|
+
{ 5, s_4_22, -1, 11, 0},
|
149
|
+
{ 5, s_4_23, -1, 1, 0},
|
150
|
+
{ 4, s_4_24, -1, 8, 0},
|
151
|
+
{ 3, s_4_25, -1, 8, 0},
|
152
|
+
{ 6, s_4_26, -1, 4, 0},
|
153
|
+
{ 6, s_4_27, -1, 2, 0},
|
154
|
+
{ 6, s_4_28, -1, 4, 0},
|
155
|
+
{ 6, s_4_29, -1, 2, 0},
|
156
|
+
{ 5, s_4_30, -1, 15, 0},
|
157
|
+
{ 6, s_4_31, 30, 6, 0},
|
158
|
+
{ 9, s_4_32, 31, 12, 0},
|
159
|
+
{ 4, s_4_33, -1, 7, 0},
|
160
|
+
{ 4, s_4_34, -1, 15, 0},
|
161
|
+
{ 5, s_4_35, 34, 6, 0},
|
162
|
+
{ 8, s_4_36, 35, 12, 0},
|
163
|
+
{ 6, s_4_37, 34, 13, 0},
|
164
|
+
{ 6, s_4_38, 34, 14, 0},
|
165
|
+
{ 3, s_4_39, -1, 10, 0},
|
166
|
+
{ 4, s_4_40, 39, 9, 0},
|
167
|
+
{ 3, s_4_41, -1, 1, 0},
|
168
|
+
{ 3, s_4_42, -1, 7, 0}
|
164
169
|
};
|
165
170
|
|
166
171
|
static const symbol s_5_0[3] = { 'i', 'r', 'a' };
|
@@ -201,41 +206,41 @@ static const symbol s_5_34[5] = { 'i', 's', 's', 'e', 'z' };
|
|
201
206
|
|
202
207
|
static const struct among a_5[35] =
|
203
208
|
{
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
209
|
+
{ 3, s_5_0, -1, 1, 0},
|
210
|
+
{ 2, s_5_1, -1, 1, 0},
|
211
|
+
{ 4, s_5_2, -1, 1, 0},
|
212
|
+
{ 7, s_5_3, -1, 1, 0},
|
213
|
+
{ 1, s_5_4, -1, 1, 0},
|
214
|
+
{ 4, s_5_5, 4, 1, 0},
|
215
|
+
{ 2, s_5_6, -1, 1, 0},
|
216
|
+
{ 4, s_5_7, -1, 1, 0},
|
217
|
+
{ 3, s_5_8, -1, 1, 0},
|
218
|
+
{ 4, s_5_9, -1, 1, 0},
|
219
|
+
{ 5, s_5_10, -1, 1, 0},
|
220
|
+
{ 8, s_5_11, -1, 1, 0},
|
221
|
+
{ 4, s_5_12, -1, 1, 0},
|
222
|
+
{ 2, s_5_13, -1, 1, 0},
|
223
|
+
{ 5, s_5_14, 13, 1, 0},
|
224
|
+
{ 6, s_5_15, 13, 1, 0},
|
225
|
+
{ 6, s_5_16, -1, 1, 0},
|
226
|
+
{ 7, s_5_17, -1, 1, 0},
|
227
|
+
{ 5, s_5_18, -1, 1, 0},
|
228
|
+
{ 6, s_5_19, -1, 1, 0},
|
229
|
+
{ 7, s_5_20, -1, 1, 0},
|
230
|
+
{ 2, s_5_21, -1, 1, 0},
|
231
|
+
{ 5, s_5_22, 21, 1, 0},
|
232
|
+
{ 6, s_5_23, 21, 1, 0},
|
233
|
+
{ 6, s_5_24, -1, 1, 0},
|
234
|
+
{ 7, s_5_25, -1, 1, 0},
|
235
|
+
{ 8, s_5_26, -1, 1, 0},
|
236
|
+
{ 5, s_5_27, -1, 1, 0},
|
237
|
+
{ 6, s_5_28, -1, 1, 0},
|
238
|
+
{ 5, s_5_29, -1, 1, 0},
|
239
|
+
{ 2, s_5_30, -1, 1, 0},
|
240
|
+
{ 5, s_5_31, -1, 1, 0},
|
241
|
+
{ 6, s_5_32, -1, 1, 0},
|
242
|
+
{ 4, s_5_33, -1, 1, 0},
|
243
|
+
{ 5, s_5_34, -1, 1, 0}
|
239
244
|
};
|
240
245
|
|
241
246
|
static const symbol s_6_0[1] = { 'a' };
|
@@ -279,44 +284,44 @@ static const symbol s_6_37[1] = { 0xE9 };
|
|
279
284
|
|
280
285
|
static const struct among a_6[38] =
|
281
286
|
{
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
287
|
+
{ 1, s_6_0, -1, 3, 0},
|
288
|
+
{ 3, s_6_1, 0, 2, 0},
|
289
|
+
{ 4, s_6_2, -1, 3, 0},
|
290
|
+
{ 4, s_6_3, -1, 3, 0},
|
291
|
+
{ 2, s_6_4, -1, 2, 0},
|
292
|
+
{ 2, s_6_5, -1, 3, 0},
|
293
|
+
{ 4, s_6_6, 5, 2, 0},
|
294
|
+
{ 2, s_6_7, -1, 2, 0},
|
295
|
+
{ 2, s_6_8, -1, 3, 0},
|
296
|
+
{ 4, s_6_9, 8, 2, 0},
|
297
|
+
{ 4, s_6_10, -1, 3, 0},
|
298
|
+
{ 5, s_6_11, -1, 3, 0},
|
299
|
+
{ 5, s_6_12, -1, 3, 0},
|
300
|
+
{ 4, s_6_13, -1, 3, 0},
|
301
|
+
{ 3, s_6_14, -1, 2, 0},
|
302
|
+
{ 3, s_6_15, -1, 3, 0},
|
303
|
+
{ 5, s_6_16, 15, 2, 0},
|
304
|
+
{ 4, s_6_17, -1, 1, 0},
|
305
|
+
{ 6, s_6_18, 17, 2, 0},
|
306
|
+
{ 7, s_6_19, 17, 3, 0},
|
307
|
+
{ 5, s_6_20, -1, 2, 0},
|
308
|
+
{ 4, s_6_21, -1, 3, 0},
|
309
|
+
{ 2, s_6_22, -1, 2, 0},
|
310
|
+
{ 3, s_6_23, -1, 3, 0},
|
311
|
+
{ 5, s_6_24, 23, 2, 0},
|
312
|
+
{ 3, s_6_25, -1, 3, 0},
|
313
|
+
{ 5, s_6_26, -1, 3, 0},
|
314
|
+
{ 7, s_6_27, 26, 2, 0},
|
315
|
+
{ 5, s_6_28, -1, 2, 0},
|
316
|
+
{ 6, s_6_29, -1, 3, 0},
|
317
|
+
{ 5, s_6_30, -1, 2, 0},
|
318
|
+
{ 2, s_6_31, -1, 3, 0},
|
319
|
+
{ 2, s_6_32, -1, 2, 0},
|
320
|
+
{ 3, s_6_33, 32, 2, 0},
|
321
|
+
{ 5, s_6_34, 33, 2, 0},
|
322
|
+
{ 6, s_6_35, 33, 3, 0},
|
323
|
+
{ 4, s_6_36, 32, 2, 0},
|
324
|
+
{ 1, s_6_37, -1, 2, 0}
|
320
325
|
};
|
321
326
|
|
322
327
|
static const symbol s_7_0[1] = { 'e' };
|
@@ -325,17 +330,15 @@ static const symbol s_7_2[4] = { 'i', 0xE8, 'r', 'e' };
|
|
325
330
|
static const symbol s_7_3[3] = { 'i', 'o', 'n' };
|
326
331
|
static const symbol s_7_4[3] = { 'I', 'e', 'r' };
|
327
332
|
static const symbol s_7_5[3] = { 'i', 'e', 'r' };
|
328
|
-
static const symbol s_7_6[1] = { 0xEB };
|
329
333
|
|
330
|
-
static const struct among a_7[
|
334
|
+
static const struct among a_7[6] =
|
331
335
|
{
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
/* 6 */ { 1, s_7_6, -1, 4, 0}
|
336
|
+
{ 1, s_7_0, -1, 3, 0},
|
337
|
+
{ 4, s_7_1, 0, 2, 0},
|
338
|
+
{ 4, s_7_2, 0, 2, 0},
|
339
|
+
{ 3, s_7_3, -1, 1, 0},
|
340
|
+
{ 3, s_7_4, -1, 2, 0},
|
341
|
+
{ 3, s_7_5, -1, 2, 0}
|
339
342
|
};
|
340
343
|
|
341
344
|
static const symbol s_8_0[3] = { 'e', 'l', 'l' };
|
@@ -346,93 +349,86 @@ static const symbol s_8_4[3] = { 'e', 't', 't' };
|
|
346
349
|
|
347
350
|
static const struct among a_8[5] =
|
348
351
|
{
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
352
|
+
{ 3, s_8_0, -1, -1, 0},
|
353
|
+
{ 4, s_8_1, -1, -1, 0},
|
354
|
+
{ 3, s_8_2, -1, -1, 0},
|
355
|
+
{ 3, s_8_3, -1, -1, 0},
|
356
|
+
{ 3, s_8_4, -1, -1, 0}
|
354
357
|
};
|
355
358
|
|
356
359
|
static const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 130, 103, 8, 5 };
|
357
360
|
|
358
361
|
static const unsigned char g_keep_with_s[] = { 1, 65, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
|
359
362
|
|
360
|
-
static const symbol s_0[] = { '
|
361
|
-
static const symbol s_1[] = { '
|
362
|
-
static const symbol s_2[] = { '
|
363
|
-
static const symbol s_3[] = { '
|
364
|
-
static const symbol s_4[] = { '
|
363
|
+
static const symbol s_0[] = { 'U' };
|
364
|
+
static const symbol s_1[] = { 'I' };
|
365
|
+
static const symbol s_2[] = { 'Y' };
|
366
|
+
static const symbol s_3[] = { 'H', 'e' };
|
367
|
+
static const symbol s_4[] = { 'H', 'i' };
|
365
368
|
static const symbol s_5[] = { 'Y' };
|
366
|
-
static const symbol s_6[] = { '
|
367
|
-
static const symbol s_7[] = { '
|
368
|
-
static const symbol s_8[] = { '
|
369
|
-
static const symbol s_9[] = { '
|
370
|
-
static const symbol s_10[] = {
|
371
|
-
static const symbol s_11[] = {
|
372
|
-
static const symbol s_12[] = { '
|
373
|
-
static const symbol s_13[] = { '
|
374
|
-
static const symbol s_14[] = { '
|
375
|
-
static const symbol s_15[] = { '
|
376
|
-
static const symbol s_16[] = { '
|
377
|
-
static const symbol s_17[] = { '
|
378
|
-
static const symbol s_18[] = { 'e', '
|
379
|
-
static const symbol s_19[] = { '
|
380
|
-
static const symbol s_20[] = { '
|
381
|
-
static const symbol s_21[] = { 'i' };
|
382
|
-
static const symbol s_22[] = { 'a', '
|
383
|
-
static const symbol s_23[] = { 'i', '
|
384
|
-
static const symbol s_24[] = { '
|
385
|
-
static const symbol s_25[] = { '
|
386
|
-
static const symbol s_26[] = { '
|
387
|
-
static const symbol s_27[] = { 'e', '
|
388
|
-
static const symbol s_28[] = { 'a', '
|
389
|
-
static const symbol s_29[] = { 'e', '
|
390
|
-
static const symbol s_30[] = { '
|
391
|
-
static const symbol s_31[] = { '
|
369
|
+
static const symbol s_6[] = { 'U' };
|
370
|
+
static const symbol s_7[] = { 'i' };
|
371
|
+
static const symbol s_8[] = { 'u' };
|
372
|
+
static const symbol s_9[] = { 'y' };
|
373
|
+
static const symbol s_10[] = { 0xEB };
|
374
|
+
static const symbol s_11[] = { 0xEF };
|
375
|
+
static const symbol s_12[] = { 'i', 'c' };
|
376
|
+
static const symbol s_13[] = { 'i', 'q', 'U' };
|
377
|
+
static const symbol s_14[] = { 'l', 'o', 'g' };
|
378
|
+
static const symbol s_15[] = { 'u' };
|
379
|
+
static const symbol s_16[] = { 'e', 'n', 't' };
|
380
|
+
static const symbol s_17[] = { 'a', 't' };
|
381
|
+
static const symbol s_18[] = { 'e', 'u', 'x' };
|
382
|
+
static const symbol s_19[] = { 'i' };
|
383
|
+
static const symbol s_20[] = { 'a', 'b', 'l' };
|
384
|
+
static const symbol s_21[] = { 'i', 'q', 'U' };
|
385
|
+
static const symbol s_22[] = { 'a', 't' };
|
386
|
+
static const symbol s_23[] = { 'i', 'c' };
|
387
|
+
static const symbol s_24[] = { 'i', 'q', 'U' };
|
388
|
+
static const symbol s_25[] = { 'e', 'a', 'u' };
|
389
|
+
static const symbol s_26[] = { 'a', 'l' };
|
390
|
+
static const symbol s_27[] = { 'e', 'u', 'x' };
|
391
|
+
static const symbol s_28[] = { 'a', 'n', 't' };
|
392
|
+
static const symbol s_29[] = { 'e', 'n', 't' };
|
393
|
+
static const symbol s_30[] = { 'H', 'i' };
|
394
|
+
static const symbol s_31[] = { 'i' };
|
392
395
|
static const symbol s_32[] = { 'e' };
|
393
|
-
static const symbol s_33[] = { '
|
394
|
-
static const symbol s_34[] = { '
|
395
|
-
static const symbol s_35[] = { 't' };
|
396
|
-
static const symbol s_36[] = { 'i' };
|
397
|
-
static const symbol s_37[] = { 'g', 'u' };
|
398
|
-
static const symbol s_38[] = { 0xE9 };
|
399
|
-
static const symbol s_39[] = { 0xE8 };
|
400
|
-
static const symbol s_40[] = { 'e' };
|
401
|
-
static const symbol s_41[] = { 'Y' };
|
402
|
-
static const symbol s_42[] = { 'i' };
|
403
|
-
static const symbol s_43[] = { 0xE7 };
|
404
|
-
static const symbol s_44[] = { 'c' };
|
396
|
+
static const symbol s_33[] = { 'i' };
|
397
|
+
static const symbol s_34[] = { 'c' };
|
405
398
|
|
406
399
|
static int r_prelude(struct SN_env * z) {
|
407
|
-
while(1) {
|
400
|
+
while(1) {
|
408
401
|
int c1 = z->c;
|
409
|
-
while(1) {
|
402
|
+
while(1) {
|
410
403
|
int c2 = z->c;
|
411
|
-
{ int c3 = z->c;
|
404
|
+
{ int c3 = z->c;
|
412
405
|
if (in_grouping(z, g_v, 97, 251, 0)) goto lab3;
|
413
|
-
z->bra = z->c;
|
414
|
-
{ int c4 = z->c;
|
415
|
-
if (
|
416
|
-
z->
|
406
|
+
z->bra = z->c;
|
407
|
+
{ int c4 = z->c;
|
408
|
+
if (z->c == z->l || z->p[z->c] != 'u') goto lab5;
|
409
|
+
z->c++;
|
410
|
+
z->ket = z->c;
|
417
411
|
if (in_grouping(z, g_v, 97, 251, 0)) goto lab5;
|
418
|
-
{ int ret = slice_from_s(z, 1,
|
412
|
+
{ int ret = slice_from_s(z, 1, s_0);
|
419
413
|
if (ret < 0) return ret;
|
420
414
|
}
|
421
415
|
goto lab4;
|
422
416
|
lab5:
|
423
417
|
z->c = c4;
|
424
|
-
if (
|
425
|
-
z->
|
418
|
+
if (z->c == z->l || z->p[z->c] != 'i') goto lab6;
|
419
|
+
z->c++;
|
420
|
+
z->ket = z->c;
|
426
421
|
if (in_grouping(z, g_v, 97, 251, 0)) goto lab6;
|
427
|
-
{ int ret = slice_from_s(z, 1,
|
422
|
+
{ int ret = slice_from_s(z, 1, s_1);
|
428
423
|
if (ret < 0) return ret;
|
429
424
|
}
|
430
425
|
goto lab4;
|
431
426
|
lab6:
|
432
427
|
z->c = c4;
|
433
|
-
if (
|
434
|
-
z->
|
435
|
-
|
428
|
+
if (z->c == z->l || z->p[z->c] != 'y') goto lab3;
|
429
|
+
z->c++;
|
430
|
+
z->ket = z->c;
|
431
|
+
{ int ret = slice_from_s(z, 1, s_2);
|
436
432
|
if (ret < 0) return ret;
|
437
433
|
}
|
438
434
|
}
|
@@ -440,21 +436,44 @@ static int r_prelude(struct SN_env * z) {
|
|
440
436
|
goto lab2;
|
441
437
|
lab3:
|
442
438
|
z->c = c3;
|
443
|
-
z->bra = z->c;
|
444
|
-
if (
|
445
|
-
z->
|
446
|
-
|
447
|
-
{ int ret = slice_from_s(z,
|
439
|
+
z->bra = z->c;
|
440
|
+
if (z->c == z->l || z->p[z->c] != 0xEB) goto lab7;
|
441
|
+
z->c++;
|
442
|
+
z->ket = z->c;
|
443
|
+
{ int ret = slice_from_s(z, 2, s_3);
|
448
444
|
if (ret < 0) return ret;
|
449
445
|
}
|
450
446
|
goto lab2;
|
451
447
|
lab7:
|
452
448
|
z->c = c3;
|
453
|
-
|
454
|
-
z->
|
455
|
-
|
456
|
-
z->ket = z->c;
|
457
|
-
{ int ret = slice_from_s(z,
|
449
|
+
z->bra = z->c;
|
450
|
+
if (z->c == z->l || z->p[z->c] != 0xEF) goto lab8;
|
451
|
+
z->c++;
|
452
|
+
z->ket = z->c;
|
453
|
+
{ int ret = slice_from_s(z, 2, s_4);
|
454
|
+
if (ret < 0) return ret;
|
455
|
+
}
|
456
|
+
goto lab2;
|
457
|
+
lab8:
|
458
|
+
z->c = c3;
|
459
|
+
z->bra = z->c;
|
460
|
+
if (z->c == z->l || z->p[z->c] != 'y') goto lab9;
|
461
|
+
z->c++;
|
462
|
+
z->ket = z->c;
|
463
|
+
if (in_grouping(z, g_v, 97, 251, 0)) goto lab9;
|
464
|
+
{ int ret = slice_from_s(z, 1, s_5);
|
465
|
+
if (ret < 0) return ret;
|
466
|
+
}
|
467
|
+
goto lab2;
|
468
|
+
lab9:
|
469
|
+
z->c = c3;
|
470
|
+
if (z->c == z->l || z->p[z->c] != 'q') goto lab1;
|
471
|
+
z->c++;
|
472
|
+
z->bra = z->c;
|
473
|
+
if (z->c == z->l || z->p[z->c] != 'u') goto lab1;
|
474
|
+
z->c++;
|
475
|
+
z->ket = z->c;
|
476
|
+
{ int ret = slice_from_s(z, 1, s_6);
|
458
477
|
if (ret < 0) return ret;
|
459
478
|
}
|
460
479
|
}
|
@@ -464,7 +483,7 @@ static int r_prelude(struct SN_env * z) {
|
|
464
483
|
lab1:
|
465
484
|
z->c = c2;
|
466
485
|
if (z->c >= z->l) goto lab0;
|
467
|
-
z->c++;
|
486
|
+
z->c++;
|
468
487
|
}
|
469
488
|
continue;
|
470
489
|
lab0:
|
@@ -475,59 +494,59 @@ static int r_prelude(struct SN_env * z) {
|
|
475
494
|
}
|
476
495
|
|
477
496
|
static int r_mark_regions(struct SN_env * z) {
|
478
|
-
z->I[0] = z->l;
|
479
|
-
z->I[1] = z->l;
|
480
497
|
z->I[2] = z->l;
|
481
|
-
|
482
|
-
|
498
|
+
z->I[1] = z->l;
|
499
|
+
z->I[0] = z->l;
|
500
|
+
{ int c1 = z->c;
|
501
|
+
{ int c2 = z->c;
|
483
502
|
if (in_grouping(z, g_v, 97, 251, 0)) goto lab2;
|
484
503
|
if (in_grouping(z, g_v, 97, 251, 0)) goto lab2;
|
485
504
|
if (z->c >= z->l) goto lab2;
|
486
|
-
z->c++;
|
505
|
+
z->c++;
|
487
506
|
goto lab1;
|
488
507
|
lab2:
|
489
508
|
z->c = c2;
|
490
509
|
if (z->c + 2 >= z->l || z->p[z->c + 2] >> 5 != 3 || !((331776 >> (z->p[z->c + 2] & 0x1f)) & 1)) goto lab3;
|
491
|
-
if (!(find_among(z, a_0, 3))) goto lab3;
|
510
|
+
if (!(find_among(z, a_0, 3))) goto lab3;
|
492
511
|
goto lab1;
|
493
512
|
lab3:
|
494
513
|
z->c = c2;
|
495
514
|
if (z->c >= z->l) goto lab0;
|
496
|
-
z->c++;
|
497
|
-
{
|
515
|
+
z->c++;
|
516
|
+
{
|
498
517
|
int ret = out_grouping(z, g_v, 97, 251, 1);
|
499
518
|
if (ret < 0) goto lab0;
|
500
519
|
z->c += ret;
|
501
520
|
}
|
502
521
|
}
|
503
522
|
lab1:
|
504
|
-
z->I[
|
523
|
+
z->I[2] = z->c;
|
505
524
|
lab0:
|
506
525
|
z->c = c1;
|
507
526
|
}
|
508
|
-
{ int c3 = z->c;
|
509
|
-
{
|
527
|
+
{ int c3 = z->c;
|
528
|
+
{
|
510
529
|
int ret = out_grouping(z, g_v, 97, 251, 1);
|
511
530
|
if (ret < 0) goto lab4;
|
512
531
|
z->c += ret;
|
513
532
|
}
|
514
|
-
{
|
533
|
+
{
|
515
534
|
int ret = in_grouping(z, g_v, 97, 251, 1);
|
516
535
|
if (ret < 0) goto lab4;
|
517
536
|
z->c += ret;
|
518
537
|
}
|
519
|
-
z->I[1] = z->c;
|
520
|
-
{
|
538
|
+
z->I[1] = z->c;
|
539
|
+
{
|
521
540
|
int ret = out_grouping(z, g_v, 97, 251, 1);
|
522
541
|
if (ret < 0) goto lab4;
|
523
542
|
z->c += ret;
|
524
543
|
}
|
525
|
-
{
|
544
|
+
{
|
526
545
|
int ret = in_grouping(z, g_v, 97, 251, 1);
|
527
546
|
if (ret < 0) goto lab4;
|
528
547
|
z->c += ret;
|
529
548
|
}
|
530
|
-
z->I[
|
549
|
+
z->I[0] = z->c;
|
531
550
|
lab4:
|
532
551
|
z->c = c3;
|
533
552
|
}
|
@@ -536,33 +555,47 @@ static int r_mark_regions(struct SN_env * z) {
|
|
536
555
|
|
537
556
|
static int r_postlude(struct SN_env * z) {
|
538
557
|
int among_var;
|
539
|
-
while(1) {
|
558
|
+
while(1) {
|
540
559
|
int c1 = z->c;
|
541
|
-
z->bra = z->c;
|
542
|
-
if (z->c >= z->l || z->p[z->c + 0] >> 5 != 2 || !((
|
543
|
-
among_var = find_among(z, a_1,
|
560
|
+
z->bra = z->c;
|
561
|
+
if (z->c >= z->l || z->p[z->c + 0] >> 5 != 2 || !((35652352 >> (z->p[z->c + 0] & 0x1f)) & 1)) among_var = 7; else
|
562
|
+
among_var = find_among(z, a_1, 7);
|
544
563
|
if (!(among_var)) goto lab0;
|
545
|
-
z->ket = z->c;
|
546
|
-
switch(among_var) {
|
547
|
-
case 0: goto lab0;
|
564
|
+
z->ket = z->c;
|
565
|
+
switch (among_var) {
|
548
566
|
case 1:
|
549
|
-
{ int ret = slice_from_s(z, 1,
|
567
|
+
{ int ret = slice_from_s(z, 1, s_7);
|
550
568
|
if (ret < 0) return ret;
|
551
569
|
}
|
552
570
|
break;
|
553
571
|
case 2:
|
554
|
-
{ int ret = slice_from_s(z, 1,
|
572
|
+
{ int ret = slice_from_s(z, 1, s_8);
|
555
573
|
if (ret < 0) return ret;
|
556
574
|
}
|
557
575
|
break;
|
558
576
|
case 3:
|
559
|
-
{ int ret = slice_from_s(z, 1,
|
577
|
+
{ int ret = slice_from_s(z, 1, s_9);
|
560
578
|
if (ret < 0) return ret;
|
561
579
|
}
|
562
580
|
break;
|
563
581
|
case 4:
|
582
|
+
{ int ret = slice_from_s(z, 1, s_10);
|
583
|
+
if (ret < 0) return ret;
|
584
|
+
}
|
585
|
+
break;
|
586
|
+
case 5:
|
587
|
+
{ int ret = slice_from_s(z, 1, s_11);
|
588
|
+
if (ret < 0) return ret;
|
589
|
+
}
|
590
|
+
break;
|
591
|
+
case 6:
|
592
|
+
{ int ret = slice_del(z);
|
593
|
+
if (ret < 0) return ret;
|
594
|
+
}
|
595
|
+
break;
|
596
|
+
case 7:
|
564
597
|
if (z->c >= z->l) goto lab0;
|
565
|
-
z->c++;
|
598
|
+
z->c++;
|
566
599
|
break;
|
567
600
|
}
|
568
601
|
continue;
|
@@ -574,7 +607,7 @@ static int r_postlude(struct SN_env * z) {
|
|
574
607
|
}
|
575
608
|
|
576
609
|
static int r_RV(struct SN_env * z) {
|
577
|
-
if (!(z->I[
|
610
|
+
if (!(z->I[2] <= z->c)) return 0;
|
578
611
|
return 1;
|
579
612
|
}
|
580
613
|
|
@@ -584,51 +617,48 @@ static int r_R1(struct SN_env * z) {
|
|
584
617
|
}
|
585
618
|
|
586
619
|
static int r_R2(struct SN_env * z) {
|
587
|
-
if (!(z->I[
|
620
|
+
if (!(z->I[0] <= z->c)) return 0;
|
588
621
|
return 1;
|
589
622
|
}
|
590
623
|
|
591
624
|
static int r_standard_suffix(struct SN_env * z) {
|
592
625
|
int among_var;
|
593
|
-
z->ket = z->c;
|
594
|
-
among_var = find_among_b(z, a_4, 43);
|
626
|
+
z->ket = z->c;
|
627
|
+
among_var = find_among_b(z, a_4, 43);
|
595
628
|
if (!(among_var)) return 0;
|
596
|
-
z->bra = z->c;
|
597
|
-
switch(among_var) {
|
598
|
-
case 0: return 0;
|
629
|
+
z->bra = z->c;
|
630
|
+
switch (among_var) {
|
599
631
|
case 1:
|
600
632
|
{ int ret = r_R2(z);
|
601
|
-
if (ret
|
602
|
-
if (ret < 0) return ret;
|
633
|
+
if (ret <= 0) return ret;
|
603
634
|
}
|
604
|
-
{ int ret = slice_del(z);
|
635
|
+
{ int ret = slice_del(z);
|
605
636
|
if (ret < 0) return ret;
|
606
637
|
}
|
607
638
|
break;
|
608
639
|
case 2:
|
609
640
|
{ int ret = r_R2(z);
|
610
|
-
if (ret
|
611
|
-
if (ret < 0) return ret;
|
641
|
+
if (ret <= 0) return ret;
|
612
642
|
}
|
613
|
-
{ int ret = slice_del(z);
|
643
|
+
{ int ret = slice_del(z);
|
614
644
|
if (ret < 0) return ret;
|
615
645
|
}
|
616
|
-
{ int
|
617
|
-
z->ket = z->c;
|
618
|
-
if (!(eq_s_b(z, 2,
|
619
|
-
z->bra = z->c;
|
620
|
-
{ int
|
646
|
+
{ int m1 = z->l - z->c; (void)m1;
|
647
|
+
z->ket = z->c;
|
648
|
+
if (!(eq_s_b(z, 2, s_12))) { z->c = z->l - m1; goto lab0; }
|
649
|
+
z->bra = z->c;
|
650
|
+
{ int m2 = z->l - z->c; (void)m2;
|
621
651
|
{ int ret = r_R2(z);
|
622
|
-
if (ret == 0) goto lab2;
|
652
|
+
if (ret == 0) goto lab2;
|
623
653
|
if (ret < 0) return ret;
|
624
654
|
}
|
625
|
-
{ int ret = slice_del(z);
|
655
|
+
{ int ret = slice_del(z);
|
626
656
|
if (ret < 0) return ret;
|
627
657
|
}
|
628
658
|
goto lab1;
|
629
659
|
lab2:
|
630
|
-
z->c = z->l -
|
631
|
-
{ int ret = slice_from_s(z, 3,
|
660
|
+
z->c = z->l - m2;
|
661
|
+
{ int ret = slice_from_s(z, 3, s_13);
|
632
662
|
if (ret < 0) return ret;
|
633
663
|
}
|
634
664
|
}
|
@@ -639,82 +669,77 @@ static int r_standard_suffix(struct SN_env * z) {
|
|
639
669
|
break;
|
640
670
|
case 3:
|
641
671
|
{ int ret = r_R2(z);
|
642
|
-
if (ret
|
643
|
-
if (ret < 0) return ret;
|
672
|
+
if (ret <= 0) return ret;
|
644
673
|
}
|
645
|
-
{ int ret = slice_from_s(z, 3,
|
674
|
+
{ int ret = slice_from_s(z, 3, s_14);
|
646
675
|
if (ret < 0) return ret;
|
647
676
|
}
|
648
677
|
break;
|
649
678
|
case 4:
|
650
679
|
{ int ret = r_R2(z);
|
651
|
-
if (ret
|
652
|
-
if (ret < 0) return ret;
|
680
|
+
if (ret <= 0) return ret;
|
653
681
|
}
|
654
|
-
{ int ret = slice_from_s(z, 1,
|
682
|
+
{ int ret = slice_from_s(z, 1, s_15);
|
655
683
|
if (ret < 0) return ret;
|
656
684
|
}
|
657
685
|
break;
|
658
686
|
case 5:
|
659
687
|
{ int ret = r_R2(z);
|
660
|
-
if (ret
|
661
|
-
if (ret < 0) return ret;
|
688
|
+
if (ret <= 0) return ret;
|
662
689
|
}
|
663
|
-
{ int ret = slice_from_s(z, 3,
|
690
|
+
{ int ret = slice_from_s(z, 3, s_16);
|
664
691
|
if (ret < 0) return ret;
|
665
692
|
}
|
666
693
|
break;
|
667
694
|
case 6:
|
668
695
|
{ int ret = r_RV(z);
|
669
|
-
if (ret
|
670
|
-
if (ret < 0) return ret;
|
696
|
+
if (ret <= 0) return ret;
|
671
697
|
}
|
672
|
-
{ int ret = slice_del(z);
|
698
|
+
{ int ret = slice_del(z);
|
673
699
|
if (ret < 0) return ret;
|
674
700
|
}
|
675
|
-
{ int
|
676
|
-
z->ket = z->c;
|
677
|
-
among_var = find_among_b(z, a_2, 6);
|
678
|
-
if (!(among_var)) { z->c = z->l -
|
679
|
-
z->bra = z->c;
|
680
|
-
switch(among_var) {
|
681
|
-
case 0: { z->c = z->l - m_keep; goto lab3; }
|
701
|
+
{ int m3 = z->l - z->c; (void)m3;
|
702
|
+
z->ket = z->c;
|
703
|
+
among_var = find_among_b(z, a_2, 6);
|
704
|
+
if (!(among_var)) { z->c = z->l - m3; goto lab3; }
|
705
|
+
z->bra = z->c;
|
706
|
+
switch (among_var) {
|
682
707
|
case 1:
|
683
708
|
{ int ret = r_R2(z);
|
684
|
-
if (ret == 0) { z->c = z->l -
|
709
|
+
if (ret == 0) { z->c = z->l - m3; goto lab3; }
|
685
710
|
if (ret < 0) return ret;
|
686
711
|
}
|
687
|
-
{ int ret = slice_del(z);
|
712
|
+
{ int ret = slice_del(z);
|
688
713
|
if (ret < 0) return ret;
|
689
714
|
}
|
690
|
-
z->ket = z->c;
|
691
|
-
if (!(eq_s_b(z, 2,
|
692
|
-
z->bra = z->c;
|
715
|
+
z->ket = z->c;
|
716
|
+
if (!(eq_s_b(z, 2, s_17))) { z->c = z->l - m3; goto lab3; }
|
717
|
+
z->bra = z->c;
|
693
718
|
{ int ret = r_R2(z);
|
694
|
-
if (ret == 0) { z->c = z->l -
|
719
|
+
if (ret == 0) { z->c = z->l - m3; goto lab3; }
|
695
720
|
if (ret < 0) return ret;
|
696
721
|
}
|
697
|
-
{ int ret = slice_del(z);
|
722
|
+
{ int ret = slice_del(z);
|
698
723
|
if (ret < 0) return ret;
|
699
724
|
}
|
700
725
|
break;
|
701
726
|
case 2:
|
702
|
-
{ int
|
727
|
+
{ int m4 = z->l - z->c; (void)m4;
|
703
728
|
{ int ret = r_R2(z);
|
704
|
-
if (ret == 0) goto lab5;
|
729
|
+
if (ret == 0) goto lab5;
|
705
730
|
if (ret < 0) return ret;
|
706
731
|
}
|
707
|
-
{ int ret = slice_del(z);
|
732
|
+
{ int ret = slice_del(z);
|
708
733
|
if (ret < 0) return ret;
|
709
734
|
}
|
710
735
|
goto lab4;
|
711
736
|
lab5:
|
712
|
-
z->c = z->l -
|
737
|
+
z->c = z->l - m4;
|
713
738
|
{ int ret = r_R1(z);
|
714
|
-
if (ret == 0) { z->c = z->l -
|
739
|
+
if (ret == 0) { z->c = z->l - m3; goto lab3; }
|
715
740
|
if (ret < 0) return ret;
|
716
741
|
}
|
717
|
-
{ int ret = slice_from_s(z, 3,
|
742
|
+
{ int ret = slice_from_s(z, 3, s_18);
|
718
743
|
if (ret < 0) return ret;
|
719
744
|
}
|
720
745
|
}
|
@@ -722,19 +747,19 @@ static int r_standard_suffix(struct SN_env * z) {
|
|
722
747
|
break;
|
723
748
|
case 3:
|
724
749
|
{ int ret = r_R2(z);
|
725
|
-
if (ret == 0) { z->c = z->l -
|
750
|
+
if (ret == 0) { z->c = z->l - m3; goto lab3; }
|
726
751
|
if (ret < 0) return ret;
|
727
752
|
}
|
728
|
-
{ int ret = slice_del(z);
|
753
|
+
{ int ret = slice_del(z);
|
729
754
|
if (ret < 0) return ret;
|
730
755
|
}
|
731
756
|
break;
|
732
757
|
case 4:
|
733
758
|
{ int ret = r_RV(z);
|
734
|
-
if (ret == 0) { z->c = z->l -
|
759
|
+
if (ret == 0) { z->c = z->l - m3; goto lab3; }
|
735
760
|
if (ret < 0) return ret;
|
736
761
|
}
|
737
|
-
{ int ret = slice_from_s(z, 1,
|
762
|
+
{ int ret = slice_from_s(z, 1, s_19);
|
738
763
|
if (ret < 0) return ret;
|
739
764
|
}
|
740
765
|
break;
|
@@ -745,51 +770,49 @@ static int r_standard_suffix(struct SN_env * z) {
|
|
745
770
|
break;
|
746
771
|
case 7:
|
747
772
|
{ int ret = r_R2(z);
|
748
|
-
if (ret
|
749
|
-
if (ret < 0) return ret;
|
773
|
+
if (ret <= 0) return ret;
|
750
774
|
}
|
751
|
-
{ int ret = slice_del(z);
|
775
|
+
{ int ret = slice_del(z);
|
752
776
|
if (ret < 0) return ret;
|
753
777
|
}
|
754
|
-
{ int
|
755
|
-
z->ket = z->c;
|
756
|
-
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 -
|
757
|
-
among_var = find_among_b(z, a_3, 3);
|
758
|
-
if (!(among_var)) { z->c = z->l -
|
759
|
-
z->bra = z->c;
|
760
|
-
switch(among_var) {
|
761
|
-
case 0: { z->c = z->l - m_keep; goto lab6; }
|
778
|
+
{ int m5 = z->l - z->c; (void)m5;
|
779
|
+
z->ket = z->c;
|
780
|
+
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 - m5; goto lab6; }
|
781
|
+
among_var = find_among_b(z, a_3, 3);
|
782
|
+
if (!(among_var)) { z->c = z->l - m5; goto lab6; }
|
783
|
+
z->bra = z->c;
|
784
|
+
switch (among_var) {
|
762
785
|
case 1:
|
763
|
-
{ int
|
786
|
+
{ int m6 = z->l - z->c; (void)m6;
|
764
787
|
{ int ret = r_R2(z);
|
765
|
-
if (ret == 0) goto lab8;
|
788
|
+
if (ret == 0) goto lab8;
|
766
789
|
if (ret < 0) return ret;
|
767
790
|
}
|
768
|
-
{ int ret = slice_del(z);
|
791
|
+
{ int ret = slice_del(z);
|
769
792
|
if (ret < 0) return ret;
|
770
793
|
}
|
771
794
|
goto lab7;
|
772
795
|
lab8:
|
773
|
-
z->c = z->l -
|
774
|
-
{ int ret = slice_from_s(z, 3,
|
796
|
+
z->c = z->l - m6;
|
797
|
+
{ int ret = slice_from_s(z, 3, s_20);
|
775
798
|
if (ret < 0) return ret;
|
776
799
|
}
|
777
800
|
}
|
778
801
|
lab7:
|
779
802
|
break;
|
780
803
|
case 2:
|
781
|
-
{ int
|
804
|
+
{ int m7 = z->l - z->c; (void)m7;
|
782
805
|
{ int ret = r_R2(z);
|
783
|
-
if (ret == 0) goto lab10;
|
806
|
+
if (ret == 0) goto lab10;
|
784
807
|
if (ret < 0) return ret;
|
785
808
|
}
|
786
|
-
{ int ret = slice_del(z);
|
809
|
+
{ int ret = slice_del(z);
|
787
810
|
if (ret < 0) return ret;
|
788
811
|
}
|
789
812
|
goto lab9;
|
790
813
|
lab10:
|
791
|
-
z->c = z->l -
|
792
|
-
{ int ret = slice_from_s(z, 3,
|
814
|
+
z->c = z->l - m7;
|
815
|
+
{ int ret = slice_from_s(z, 3, s_21);
|
793
816
|
if (ret < 0) return ret;
|
794
817
|
}
|
795
818
|
}
|
@@ -797,10 +820,10 @@ static int r_standard_suffix(struct SN_env * z) {
|
|
797
820
|
break;
|
798
821
|
case 3:
|
799
822
|
{ int ret = r_R2(z);
|
800
|
-
if (ret == 0) { z->c = z->l -
|
823
|
+
if (ret == 0) { z->c = z->l - m5; goto lab6; }
|
801
824
|
if (ret < 0) return ret;
|
802
825
|
}
|
803
|
-
{ int ret = slice_del(z);
|
826
|
+
{ int ret = slice_del(z);
|
804
827
|
if (ret < 0) return ret;
|
805
828
|
}
|
806
829
|
break;
|
@@ -811,38 +834,37 @@ static int r_standard_suffix(struct SN_env * z) {
|
|
811
834
|
break;
|
812
835
|
case 8:
|
813
836
|
{ int ret = r_R2(z);
|
814
|
-
if (ret
|
815
|
-
if (ret < 0) return ret;
|
837
|
+
if (ret <= 0) return ret;
|
816
838
|
}
|
817
|
-
{ int ret = slice_del(z);
|
839
|
+
{ int ret = slice_del(z);
|
818
840
|
if (ret < 0) return ret;
|
819
841
|
}
|
820
|
-
{ int
|
821
|
-
z->ket = z->c;
|
822
|
-
if (!(eq_s_b(z, 2,
|
823
|
-
z->bra = z->c;
|
842
|
+
{ int m8 = z->l - z->c; (void)m8;
|
843
|
+
z->ket = z->c;
|
844
|
+
if (!(eq_s_b(z, 2, s_22))) { z->c = z->l - m8; goto lab11; }
|
845
|
+
z->bra = z->c;
|
824
846
|
{ int ret = r_R2(z);
|
825
|
-
if (ret == 0) { z->c = z->l -
|
847
|
+
if (ret == 0) { z->c = z->l - m8; goto lab11; }
|
826
848
|
if (ret < 0) return ret;
|
827
849
|
}
|
828
|
-
{ int ret = slice_del(z);
|
850
|
+
{ int ret = slice_del(z);
|
829
851
|
if (ret < 0) return ret;
|
830
852
|
}
|
831
|
-
z->ket = z->c;
|
832
|
-
if (!(eq_s_b(z, 2,
|
833
|
-
z->bra = z->c;
|
834
|
-
{ int
|
853
|
+
z->ket = z->c;
|
854
|
+
if (!(eq_s_b(z, 2, s_23))) { z->c = z->l - m8; goto lab11; }
|
855
|
+
z->bra = z->c;
|
856
|
+
{ int m9 = z->l - z->c; (void)m9;
|
835
857
|
{ int ret = r_R2(z);
|
836
|
-
if (ret == 0) goto lab13;
|
858
|
+
if (ret == 0) goto lab13;
|
837
859
|
if (ret < 0) return ret;
|
838
860
|
}
|
839
|
-
{ int ret = slice_del(z);
|
861
|
+
{ int ret = slice_del(z);
|
840
862
|
if (ret < 0) return ret;
|
841
863
|
}
|
842
864
|
goto lab12;
|
843
865
|
lab13:
|
844
|
-
z->c = z->l -
|
845
|
-
{ int ret = slice_from_s(z, 3,
|
866
|
+
z->c = z->l - m9;
|
867
|
+
{ int ret = slice_from_s(z, 3, s_24);
|
846
868
|
if (ret < 0) return ret;
|
847
869
|
}
|
848
870
|
}
|
@@ -852,36 +874,34 @@ static int r_standard_suffix(struct SN_env * z) {
|
|
852
874
|
}
|
853
875
|
break;
|
854
876
|
case 9:
|
855
|
-
{ int ret = slice_from_s(z, 3,
|
877
|
+
{ int ret = slice_from_s(z, 3, s_25);
|
856
878
|
if (ret < 0) return ret;
|
857
879
|
}
|
858
880
|
break;
|
859
881
|
case 10:
|
860
882
|
{ int ret = r_R1(z);
|
861
|
-
if (ret
|
862
|
-
if (ret < 0) return ret;
|
883
|
+
if (ret <= 0) return ret;
|
863
884
|
}
|
864
|
-
{ int ret = slice_from_s(z, 2,
|
885
|
+
{ int ret = slice_from_s(z, 2, s_26);
|
865
886
|
if (ret < 0) return ret;
|
866
887
|
}
|
867
888
|
break;
|
868
889
|
case 11:
|
869
|
-
{ int
|
890
|
+
{ int m10 = z->l - z->c; (void)m10;
|
870
891
|
{ int ret = r_R2(z);
|
871
|
-
if (ret == 0) goto lab15;
|
892
|
+
if (ret == 0) goto lab15;
|
872
893
|
if (ret < 0) return ret;
|
873
894
|
}
|
874
|
-
{ int ret = slice_del(z);
|
895
|
+
{ int ret = slice_del(z);
|
875
896
|
if (ret < 0) return ret;
|
876
897
|
}
|
877
898
|
goto lab14;
|
878
899
|
lab15:
|
879
|
-
z->c = z->l -
|
900
|
+
z->c = z->l - m10;
|
880
901
|
{ int ret = r_R1(z);
|
881
|
-
if (ret
|
882
|
-
if (ret < 0) return ret;
|
902
|
+
if (ret <= 0) return ret;
|
883
903
|
}
|
884
|
-
{ int ret = slice_from_s(z, 3,
|
904
|
+
{ int ret = slice_from_s(z, 3, s_27);
|
885
905
|
if (ret < 0) return ret;
|
886
906
|
}
|
887
907
|
}
|
@@ -889,116 +909,108 @@ static int r_standard_suffix(struct SN_env * z) {
|
|
889
909
|
break;
|
890
910
|
case 12:
|
891
911
|
{ int ret = r_R1(z);
|
892
|
-
if (ret
|
893
|
-
if (ret < 0) return ret;
|
912
|
+
if (ret <= 0) return ret;
|
894
913
|
}
|
895
914
|
if (out_grouping_b(z, g_v, 97, 251, 0)) return 0;
|
896
|
-
{ int ret = slice_del(z);
|
915
|
+
{ int ret = slice_del(z);
|
897
916
|
if (ret < 0) return ret;
|
898
917
|
}
|
899
918
|
break;
|
900
919
|
case 13:
|
901
920
|
{ int ret = r_RV(z);
|
902
|
-
if (ret
|
903
|
-
if (ret < 0) return ret;
|
921
|
+
if (ret <= 0) return ret;
|
904
922
|
}
|
905
|
-
{ int ret = slice_from_s(z, 3,
|
923
|
+
{ int ret = slice_from_s(z, 3, s_28);
|
906
924
|
if (ret < 0) return ret;
|
907
925
|
}
|
908
|
-
return 0;
|
926
|
+
return 0;
|
909
927
|
break;
|
910
928
|
case 14:
|
911
929
|
{ int ret = r_RV(z);
|
912
|
-
if (ret
|
913
|
-
if (ret < 0) return ret;
|
930
|
+
if (ret <= 0) return ret;
|
914
931
|
}
|
915
|
-
{ int ret = slice_from_s(z, 3,
|
932
|
+
{ int ret = slice_from_s(z, 3, s_29);
|
916
933
|
if (ret < 0) return ret;
|
917
934
|
}
|
918
|
-
return 0;
|
935
|
+
return 0;
|
919
936
|
break;
|
920
937
|
case 15:
|
921
|
-
{ int
|
938
|
+
{ int m_test11 = z->l - z->c;
|
922
939
|
if (in_grouping_b(z, g_v, 97, 251, 0)) return 0;
|
923
940
|
{ int ret = r_RV(z);
|
924
|
-
if (ret
|
925
|
-
if (ret < 0) return ret;
|
941
|
+
if (ret <= 0) return ret;
|
926
942
|
}
|
927
|
-
z->c = z->l -
|
943
|
+
z->c = z->l - m_test11;
|
928
944
|
}
|
929
|
-
{ int ret = slice_del(z);
|
945
|
+
{ int ret = slice_del(z);
|
930
946
|
if (ret < 0) return ret;
|
931
947
|
}
|
932
|
-
return 0;
|
948
|
+
return 0;
|
933
949
|
break;
|
934
950
|
}
|
935
951
|
return 1;
|
936
952
|
}
|
937
953
|
|
938
954
|
static int r_i_verb_suffix(struct SN_env * z) {
|
939
|
-
|
940
|
-
{ int
|
941
|
-
|
942
|
-
|
943
|
-
z->
|
944
|
-
|
945
|
-
z
|
946
|
-
z->
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
}
|
958
|
-
break;
|
955
|
+
|
956
|
+
{ int mlimit1;
|
957
|
+
if (z->c < z->I[2]) return 0;
|
958
|
+
mlimit1 = z->lb; z->lb = z->I[2];
|
959
|
+
z->ket = z->c;
|
960
|
+
if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((68944418 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = mlimit1; return 0; }
|
961
|
+
if (!(find_among_b(z, a_5, 35))) { z->lb = mlimit1; return 0; }
|
962
|
+
z->bra = z->c;
|
963
|
+
{ int m2 = z->l - z->c; (void)m2;
|
964
|
+
if (z->c <= z->lb || z->p[z->c - 1] != 'H') goto lab0;
|
965
|
+
z->c--;
|
966
|
+
{ z->lb = mlimit1; return 0; }
|
967
|
+
lab0:
|
968
|
+
z->c = z->l - m2;
|
969
|
+
}
|
970
|
+
if (out_grouping_b(z, g_v, 97, 251, 0)) { z->lb = mlimit1; return 0; }
|
971
|
+
{ int ret = slice_del(z);
|
972
|
+
if (ret < 0) return ret;
|
959
973
|
}
|
960
|
-
z->lb =
|
974
|
+
z->lb = mlimit1;
|
961
975
|
}
|
962
976
|
return 1;
|
963
977
|
}
|
964
978
|
|
965
979
|
static int r_verb_suffix(struct SN_env * z) {
|
966
980
|
int among_var;
|
967
|
-
|
968
|
-
|
969
|
-
if (z->c < z->I[
|
970
|
-
z->
|
971
|
-
|
972
|
-
|
973
|
-
z->
|
974
|
-
|
975
|
-
|
976
|
-
z->bra = z->c; /* ], line 175 */
|
977
|
-
switch(among_var) {
|
978
|
-
case 0: { z->lb = mlimit; return 0; }
|
981
|
+
|
982
|
+
{ int mlimit1;
|
983
|
+
if (z->c < z->I[2]) return 0;
|
984
|
+
mlimit1 = z->lb; z->lb = z->I[2];
|
985
|
+
z->ket = z->c;
|
986
|
+
among_var = find_among_b(z, a_6, 38);
|
987
|
+
if (!(among_var)) { z->lb = mlimit1; return 0; }
|
988
|
+
z->bra = z->c;
|
989
|
+
switch (among_var) {
|
979
990
|
case 1:
|
980
991
|
{ int ret = r_R2(z);
|
981
|
-
if (ret == 0) { z->lb =
|
992
|
+
if (ret == 0) { z->lb = mlimit1; return 0; }
|
982
993
|
if (ret < 0) return ret;
|
983
994
|
}
|
984
|
-
{ int ret = slice_del(z);
|
995
|
+
{ int ret = slice_del(z);
|
985
996
|
if (ret < 0) return ret;
|
986
997
|
}
|
987
998
|
break;
|
988
999
|
case 2:
|
989
|
-
{ int ret = slice_del(z);
|
1000
|
+
{ int ret = slice_del(z);
|
990
1001
|
if (ret < 0) return ret;
|
991
1002
|
}
|
992
1003
|
break;
|
993
1004
|
case 3:
|
994
|
-
{ int ret = slice_del(z);
|
1005
|
+
{ int ret = slice_del(z);
|
995
1006
|
if (ret < 0) return ret;
|
996
1007
|
}
|
997
|
-
{ int
|
998
|
-
z->ket = z->c;
|
999
|
-
if (
|
1000
|
-
z->
|
1001
|
-
|
1008
|
+
{ int m2 = z->l - z->c; (void)m2;
|
1009
|
+
z->ket = z->c;
|
1010
|
+
if (z->c <= z->lb || z->p[z->c - 1] != 'e') { z->c = z->l - m2; goto lab0; }
|
1011
|
+
z->c--;
|
1012
|
+
z->bra = z->c;
|
1013
|
+
{ int ret = slice_del(z);
|
1002
1014
|
if (ret < 0) return ret;
|
1003
1015
|
}
|
1004
1016
|
lab0:
|
@@ -1006,89 +1018,91 @@ static int r_verb_suffix(struct SN_env * z) {
|
|
1006
1018
|
}
|
1007
1019
|
break;
|
1008
1020
|
}
|
1009
|
-
z->lb =
|
1021
|
+
z->lb = mlimit1;
|
1010
1022
|
}
|
1011
1023
|
return 1;
|
1012
1024
|
}
|
1013
1025
|
|
1014
1026
|
static int r_residual_suffix(struct SN_env * z) {
|
1015
1027
|
int among_var;
|
1016
|
-
{ int
|
1017
|
-
z->ket = z->c;
|
1018
|
-
if (
|
1019
|
-
z->
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1028
|
+
{ int m1 = z->l - z->c; (void)m1;
|
1029
|
+
z->ket = z->c;
|
1030
|
+
if (z->c <= z->lb || z->p[z->c - 1] != 's') { z->c = z->l - m1; goto lab0; }
|
1031
|
+
z->c--;
|
1032
|
+
z->bra = z->c;
|
1033
|
+
{ int m_test2 = z->l - z->c;
|
1034
|
+
{ int m3 = z->l - z->c; (void)m3;
|
1035
|
+
if (!(eq_s_b(z, 2, s_30))) goto lab2;
|
1036
|
+
goto lab1;
|
1037
|
+
lab2:
|
1038
|
+
z->c = z->l - m3;
|
1039
|
+
if (out_grouping_b(z, g_keep_with_s, 97, 232, 0)) { z->c = z->l - m1; goto lab0; }
|
1040
|
+
}
|
1041
|
+
lab1:
|
1042
|
+
z->c = z->l - m_test2;
|
1023
1043
|
}
|
1024
|
-
{ int ret = slice_del(z);
|
1044
|
+
{ int ret = slice_del(z);
|
1025
1045
|
if (ret < 0) return ret;
|
1026
1046
|
}
|
1027
1047
|
lab0:
|
1028
1048
|
;
|
1029
1049
|
}
|
1030
|
-
|
1031
|
-
|
1032
|
-
if (z->c < z->I[
|
1033
|
-
z->
|
1034
|
-
|
1035
|
-
z->c
|
1036
|
-
|
1037
|
-
among_var
|
1038
|
-
|
1039
|
-
|
1040
|
-
switch(among_var) {
|
1041
|
-
case 0: { z->lb = mlimit; return 0; }
|
1050
|
+
|
1051
|
+
{ int mlimit4;
|
1052
|
+
if (z->c < z->I[2]) return 0;
|
1053
|
+
mlimit4 = z->lb; z->lb = z->I[2];
|
1054
|
+
z->ket = z->c;
|
1055
|
+
if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((278560 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = mlimit4; return 0; }
|
1056
|
+
among_var = find_among_b(z, a_7, 6);
|
1057
|
+
if (!(among_var)) { z->lb = mlimit4; return 0; }
|
1058
|
+
z->bra = z->c;
|
1059
|
+
switch (among_var) {
|
1042
1060
|
case 1:
|
1043
1061
|
{ int ret = r_R2(z);
|
1044
|
-
if (ret == 0) { z->lb =
|
1062
|
+
if (ret == 0) { z->lb = mlimit4; return 0; }
|
1045
1063
|
if (ret < 0) return ret;
|
1046
1064
|
}
|
1047
|
-
{ int
|
1048
|
-
if (
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1065
|
+
{ int m5 = z->l - z->c; (void)m5;
|
1066
|
+
if (z->c <= z->lb || z->p[z->c - 1] != 's') goto lab4;
|
1067
|
+
z->c--;
|
1068
|
+
goto lab3;
|
1069
|
+
lab4:
|
1070
|
+
z->c = z->l - m5;
|
1071
|
+
if (z->c <= z->lb || z->p[z->c - 1] != 't') { z->lb = mlimit4; return 0; }
|
1072
|
+
z->c--;
|
1053
1073
|
}
|
1054
|
-
|
1055
|
-
{ int ret = slice_del(z);
|
1074
|
+
lab3:
|
1075
|
+
{ int ret = slice_del(z);
|
1056
1076
|
if (ret < 0) return ret;
|
1057
1077
|
}
|
1058
1078
|
break;
|
1059
1079
|
case 2:
|
1060
|
-
{ int ret = slice_from_s(z, 1,
|
1080
|
+
{ int ret = slice_from_s(z, 1, s_31);
|
1061
1081
|
if (ret < 0) return ret;
|
1062
1082
|
}
|
1063
1083
|
break;
|
1064
1084
|
case 3:
|
1065
|
-
{ int ret = slice_del(z);
|
1066
|
-
if (ret < 0) return ret;
|
1067
|
-
}
|
1068
|
-
break;
|
1069
|
-
case 4:
|
1070
|
-
if (!(eq_s_b(z, 2, s_37))) { z->lb = mlimit; return 0; }
|
1071
|
-
{ int ret = slice_del(z); /* delete, line 206 */
|
1085
|
+
{ int ret = slice_del(z);
|
1072
1086
|
if (ret < 0) return ret;
|
1073
1087
|
}
|
1074
1088
|
break;
|
1075
1089
|
}
|
1076
|
-
z->lb =
|
1090
|
+
z->lb = mlimit4;
|
1077
1091
|
}
|
1078
1092
|
return 1;
|
1079
1093
|
}
|
1080
1094
|
|
1081
1095
|
static int r_un_double(struct SN_env * z) {
|
1082
|
-
{ int
|
1096
|
+
{ int m_test1 = z->l - z->c;
|
1083
1097
|
if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1069056 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
|
1084
|
-
if (!(find_among_b(z, a_8, 5))) return 0;
|
1085
|
-
z->c = z->l -
|
1098
|
+
if (!(find_among_b(z, a_8, 5))) return 0;
|
1099
|
+
z->c = z->l - m_test1;
|
1086
1100
|
}
|
1087
|
-
z->ket = z->c;
|
1101
|
+
z->ket = z->c;
|
1088
1102
|
if (z->c <= z->lb) return 0;
|
1089
|
-
z->c--;
|
1090
|
-
z->bra = z->c;
|
1091
|
-
{ int ret = slice_del(z);
|
1103
|
+
z->c--;
|
1104
|
+
z->bra = z->c;
|
1105
|
+
{ int ret = slice_del(z);
|
1092
1106
|
if (ret < 0) return ret;
|
1093
1107
|
}
|
1094
1108
|
return 1;
|
@@ -1096,7 +1110,7 @@ static int r_un_double(struct SN_env * z) {
|
|
1096
1110
|
|
1097
1111
|
static int r_un_accent(struct SN_env * z) {
|
1098
1112
|
{ int i = 1;
|
1099
|
-
while(1) {
|
1113
|
+
while(1) {
|
1100
1114
|
if (out_grouping_b(z, g_v, 97, 251, 0)) goto lab0;
|
1101
1115
|
i--;
|
1102
1116
|
continue;
|
@@ -1105,129 +1119,121 @@ static int r_un_accent(struct SN_env * z) {
|
|
1105
1119
|
}
|
1106
1120
|
if (i > 0) return 0;
|
1107
1121
|
}
|
1108
|
-
z->ket = z->c;
|
1109
|
-
{ int m1 = z->l - z->c; (void)m1;
|
1110
|
-
if (
|
1122
|
+
z->ket = z->c;
|
1123
|
+
{ int m1 = z->l - z->c; (void)m1;
|
1124
|
+
if (z->c <= z->lb || z->p[z->c - 1] != 0xE9) goto lab2;
|
1125
|
+
z->c--;
|
1111
1126
|
goto lab1;
|
1112
1127
|
lab2:
|
1113
1128
|
z->c = z->l - m1;
|
1114
|
-
if (
|
1129
|
+
if (z->c <= z->lb || z->p[z->c - 1] != 0xE8) return 0;
|
1130
|
+
z->c--;
|
1115
1131
|
}
|
1116
1132
|
lab1:
|
1117
|
-
z->bra = z->c;
|
1118
|
-
{ int ret = slice_from_s(z, 1,
|
1133
|
+
z->bra = z->c;
|
1134
|
+
{ int ret = slice_from_s(z, 1, s_32);
|
1119
1135
|
if (ret < 0) return ret;
|
1120
1136
|
}
|
1121
1137
|
return 1;
|
1122
1138
|
}
|
1123
1139
|
|
1124
1140
|
extern int french_ISO_8859_1_stem(struct SN_env * z) {
|
1125
|
-
{ int c1 = z->c;
|
1141
|
+
{ int c1 = z->c;
|
1126
1142
|
{ int ret = r_prelude(z);
|
1127
|
-
if (ret == 0) goto lab0; /* call prelude, line 223 */
|
1128
1143
|
if (ret < 0) return ret;
|
1129
1144
|
}
|
1130
|
-
lab0:
|
1131
1145
|
z->c = c1;
|
1132
1146
|
}
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
if (ret < 0) return ret;
|
1137
|
-
}
|
1138
|
-
lab1:
|
1139
|
-
z->c = c2;
|
1147
|
+
|
1148
|
+
{ int ret = r_mark_regions(z);
|
1149
|
+
if (ret < 0) return ret;
|
1140
1150
|
}
|
1141
|
-
z->lb = z->c; z->c = z->l;
|
1151
|
+
z->lb = z->c; z->c = z->l;
|
1142
1152
|
|
1143
|
-
{ int
|
1144
|
-
{ int
|
1145
|
-
{ int
|
1146
|
-
{ int
|
1153
|
+
{ int m2 = z->l - z->c; (void)m2;
|
1154
|
+
{ int m3 = z->l - z->c; (void)m3;
|
1155
|
+
{ int m4 = z->l - z->c; (void)m4;
|
1156
|
+
{ int m5 = z->l - z->c; (void)m5;
|
1147
1157
|
{ int ret = r_standard_suffix(z);
|
1148
|
-
if (ret == 0) goto
|
1158
|
+
if (ret == 0) goto lab4;
|
1149
1159
|
if (ret < 0) return ret;
|
1150
1160
|
}
|
1151
|
-
goto
|
1152
|
-
|
1153
|
-
z->c = z->l -
|
1161
|
+
goto lab3;
|
1162
|
+
lab4:
|
1163
|
+
z->c = z->l - m5;
|
1154
1164
|
{ int ret = r_i_verb_suffix(z);
|
1155
|
-
if (ret == 0) goto
|
1165
|
+
if (ret == 0) goto lab5;
|
1156
1166
|
if (ret < 0) return ret;
|
1157
1167
|
}
|
1158
|
-
goto
|
1159
|
-
|
1160
|
-
z->c = z->l -
|
1168
|
+
goto lab3;
|
1169
|
+
lab5:
|
1170
|
+
z->c = z->l - m5;
|
1161
1171
|
{ int ret = r_verb_suffix(z);
|
1162
|
-
if (ret == 0) goto
|
1172
|
+
if (ret == 0) goto lab2;
|
1163
1173
|
if (ret < 0) return ret;
|
1164
1174
|
}
|
1165
1175
|
}
|
1166
|
-
|
1167
|
-
z->c = z->l -
|
1168
|
-
{ int
|
1169
|
-
z->ket = z->c;
|
1170
|
-
{ int m7 = z->l - z->c; (void)m7;
|
1171
|
-
if (
|
1172
|
-
z->
|
1173
|
-
|
1176
|
+
lab3:
|
1177
|
+
z->c = z->l - m4;
|
1178
|
+
{ int m6 = z->l - z->c; (void)m6;
|
1179
|
+
z->ket = z->c;
|
1180
|
+
{ int m7 = z->l - z->c; (void)m7;
|
1181
|
+
if (z->c <= z->lb || z->p[z->c - 1] != 'Y') goto lab8;
|
1182
|
+
z->c--;
|
1183
|
+
z->bra = z->c;
|
1184
|
+
{ int ret = slice_from_s(z, 1, s_33);
|
1174
1185
|
if (ret < 0) return ret;
|
1175
1186
|
}
|
1176
|
-
goto
|
1177
|
-
|
1187
|
+
goto lab7;
|
1188
|
+
lab8:
|
1178
1189
|
z->c = z->l - m7;
|
1179
|
-
if (
|
1180
|
-
z->
|
1181
|
-
|
1190
|
+
if (z->c <= z->lb || z->p[z->c - 1] != 0xE7) { z->c = z->l - m6; goto lab6; }
|
1191
|
+
z->c--;
|
1192
|
+
z->bra = z->c;
|
1193
|
+
{ int ret = slice_from_s(z, 1, s_34);
|
1182
1194
|
if (ret < 0) return ret;
|
1183
1195
|
}
|
1184
1196
|
}
|
1185
|
-
|
1186
|
-
|
1197
|
+
lab7:
|
1198
|
+
lab6:
|
1187
1199
|
;
|
1188
1200
|
}
|
1189
1201
|
}
|
1190
|
-
goto
|
1191
|
-
|
1192
|
-
z->c = z->l -
|
1202
|
+
goto lab1;
|
1203
|
+
lab2:
|
1204
|
+
z->c = z->l - m3;
|
1193
1205
|
{ int ret = r_residual_suffix(z);
|
1194
|
-
if (ret == 0) goto
|
1206
|
+
if (ret == 0) goto lab0;
|
1195
1207
|
if (ret < 0) return ret;
|
1196
1208
|
}
|
1197
1209
|
}
|
1198
|
-
|
1199
|
-
|
1200
|
-
z->c = z->l -
|
1210
|
+
lab1:
|
1211
|
+
lab0:
|
1212
|
+
z->c = z->l - m2;
|
1201
1213
|
}
|
1202
|
-
{ int m8 = z->l - z->c; (void)m8;
|
1214
|
+
{ int m8 = z->l - z->c; (void)m8;
|
1203
1215
|
{ int ret = r_un_double(z);
|
1204
|
-
if (ret == 0) goto lab11; /* call un_double, line 243 */
|
1205
1216
|
if (ret < 0) return ret;
|
1206
1217
|
}
|
1207
|
-
lab11:
|
1208
1218
|
z->c = z->l - m8;
|
1209
1219
|
}
|
1210
|
-
{ int m9 = z->l - z->c; (void)m9;
|
1220
|
+
{ int m9 = z->l - z->c; (void)m9;
|
1211
1221
|
{ int ret = r_un_accent(z);
|
1212
|
-
if (ret == 0) goto lab12; /* call un_accent, line 244 */
|
1213
1222
|
if (ret < 0) return ret;
|
1214
1223
|
}
|
1215
|
-
lab12:
|
1216
1224
|
z->c = z->l - m9;
|
1217
1225
|
}
|
1218
1226
|
z->c = z->lb;
|
1219
|
-
{ int c10 = z->c;
|
1227
|
+
{ int c10 = z->c;
|
1220
1228
|
{ int ret = r_postlude(z);
|
1221
|
-
if (ret == 0) goto lab13; /* call postlude, line 246 */
|
1222
1229
|
if (ret < 0) return ret;
|
1223
1230
|
}
|
1224
|
-
lab13:
|
1225
1231
|
z->c = c10;
|
1226
1232
|
}
|
1227
1233
|
return 1;
|
1228
1234
|
}
|
1229
1235
|
|
1230
|
-
extern struct SN_env * french_ISO_8859_1_create_env(void) { return SN_create_env(0, 3
|
1236
|
+
extern struct SN_env * french_ISO_8859_1_create_env(void) { return SN_create_env(0, 3); }
|
1231
1237
|
|
1232
1238
|
extern void french_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 0); }
|
1233
1239
|
|