isomorfeus-ferret 0.12.4 → 0.12.5

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