stemmer4r 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. data/CVS/Entries +5 -0
  2. data/CVS/Repository +1 -0
  3. data/CVS/Root +1 -0
  4. data/LICENSE +20 -0
  5. data/README +9 -0
  6. data/ext/CVS/Entries +1 -0
  7. data/ext/CVS/Repository +1 -0
  8. data/ext/CVS/Root +1 -0
  9. data/ext/stemmer4r/CVS/Entries +4 -0
  10. data/ext/stemmer4r/CVS/Repository +1 -0
  11. data/ext/stemmer4r/CVS/Root +1 -0
  12. data/ext/stemmer4r/depend +14 -0
  13. data/ext/stemmer4r/extconf.rb +8 -0
  14. data/ext/stemmer4r/libstemmer_c/CVS/Entries +7 -0
  15. data/ext/stemmer4r/libstemmer_c/CVS/Repository +1 -0
  16. data/ext/stemmer4r/libstemmer_c/CVS/Root +1 -0
  17. data/ext/stemmer4r/libstemmer_c/MANIFEST +39 -0
  18. data/ext/stemmer4r/libstemmer_c/Makefile +5 -0
  19. data/ext/stemmer4r/libstemmer_c/include/CVS/Entries +2 -0
  20. data/ext/stemmer4r/libstemmer_c/include/CVS/Repository +1 -0
  21. data/ext/stemmer4r/libstemmer_c/include/CVS/Root +1 -0
  22. data/ext/stemmer4r/libstemmer_c/include/libstemmer.h +63 -0
  23. data/ext/stemmer4r/libstemmer_c/libstemmer/CVS/Entries +3 -0
  24. data/ext/stemmer4r/libstemmer_c/libstemmer/CVS/Repository +1 -0
  25. data/ext/stemmer4r/libstemmer_c/libstemmer/CVS/Root +1 -0
  26. data/ext/stemmer4r/libstemmer_c/libstemmer/libstemmer.c +78 -0
  27. data/ext/stemmer4r/libstemmer_c/libstemmer/modules.h +96 -0
  28. data/ext/stemmer4r/libstemmer_c/mkinc.mak +42 -0
  29. data/ext/stemmer4r/libstemmer_c/runtime/CVS/Entries +5 -0
  30. data/ext/stemmer4r/libstemmer_c/runtime/CVS/Repository +1 -0
  31. data/ext/stemmer4r/libstemmer_c/runtime/CVS/Root +1 -0
  32. data/ext/stemmer4r/libstemmer_c/runtime/api.c +69 -0
  33. data/ext/stemmer4r/libstemmer_c/runtime/api.h +27 -0
  34. data/ext/stemmer4r/libstemmer_c/runtime/header.h +56 -0
  35. data/ext/stemmer4r/libstemmer_c/runtime/utilities.c +403 -0
  36. data/ext/stemmer4r/libstemmer_c/src_c/CVS/Entries +33 -0
  37. data/ext/stemmer4r/libstemmer_c/src_c/CVS/Repository +1 -0
  38. data/ext/stemmer4r/libstemmer_c/src_c/CVS/Root +1 -0
  39. data/ext/stemmer4r/libstemmer_c/src_c/stem_danish.c +330 -0
  40. data/ext/stemmer4r/libstemmer_c/src_c/stem_danish.h +16 -0
  41. data/ext/stemmer4r/libstemmer_c/src_c/stem_dutch.c +635 -0
  42. data/ext/stemmer4r/libstemmer_c/src_c/stem_dutch.h +16 -0
  43. data/ext/stemmer4r/libstemmer_c/src_c/stem_english.c +1109 -0
  44. data/ext/stemmer4r/libstemmer_c/src_c/stem_english.h +16 -0
  45. data/ext/stemmer4r/libstemmer_c/src_c/stem_finnish.c +792 -0
  46. data/ext/stemmer4r/libstemmer_c/src_c/stem_finnish.h +16 -0
  47. data/ext/stemmer4r/libstemmer_c/src_c/stem_french.c +1276 -0
  48. data/ext/stemmer4r/libstemmer_c/src_c/stem_french.h +16 -0
  49. data/ext/stemmer4r/libstemmer_c/src_c/stem_german.c +504 -0
  50. data/ext/stemmer4r/libstemmer_c/src_c/stem_german.h +16 -0
  51. data/ext/stemmer4r/libstemmer_c/src_c/stem_german2.c +549 -0
  52. data/ext/stemmer4r/libstemmer_c/src_c/stem_german2.h +16 -0
  53. data/ext/stemmer4r/libstemmer_c/src_c/stem_italian.c +1087 -0
  54. data/ext/stemmer4r/libstemmer_c/src_c/stem_italian.h +16 -0
  55. data/ext/stemmer4r/libstemmer_c/src_c/stem_kraaij_pohlmann.c +1780 -0
  56. data/ext/stemmer4r/libstemmer_c/src_c/stem_kraaij_pohlmann.h +16 -0
  57. data/ext/stemmer4r/libstemmer_c/src_c/stem_lovins.c +1752 -0
  58. data/ext/stemmer4r/libstemmer_c/src_c/stem_lovins.h +16 -0
  59. data/ext/stemmer4r/libstemmer_c/src_c/stem_norwegian.c +279 -0
  60. data/ext/stemmer4r/libstemmer_c/src_c/stem_norwegian.h +16 -0
  61. data/ext/stemmer4r/libstemmer_c/src_c/stem_porter.c +776 -0
  62. data/ext/stemmer4r/libstemmer_c/src_c/stem_porter.h +16 -0
  63. data/ext/stemmer4r/libstemmer_c/src_c/stem_portuguese.c +1027 -0
  64. data/ext/stemmer4r/libstemmer_c/src_c/stem_portuguese.h +16 -0
  65. data/ext/stemmer4r/libstemmer_c/src_c/stem_russian.c +701 -0
  66. data/ext/stemmer4r/libstemmer_c/src_c/stem_russian.h +16 -0
  67. data/ext/stemmer4r/libstemmer_c/src_c/stem_spanish.c +1109 -0
  68. data/ext/stemmer4r/libstemmer_c/src_c/stem_spanish.h +16 -0
  69. data/ext/stemmer4r/libstemmer_c/src_c/stem_swedish.c +299 -0
  70. data/ext/stemmer4r/libstemmer_c/src_c/stem_swedish.h +16 -0
  71. data/ext/stemmer4r/stemmer4r.c +146 -0
  72. data/stemmer4r.gemspec +23 -0
  73. data/test/CVS/Entries +2 -0
  74. data/test/CVS/Repository +1 -0
  75. data/test/CVS/Root +1 -0
  76. data/test/test.rb +31 -0
  77. data/test/tests/CVS/Entries +12 -0
  78. data/test/tests/CVS/Repository +1 -0
  79. data/test/tests/CVS/Root +1 -0
  80. data/test/tests/da/CVS/Entries +3 -0
  81. data/test/tests/da/CVS/Repository +1 -0
  82. data/test/tests/da/CVS/Root +1 -0
  83. data/test/tests/da/output.txt +23829 -0
  84. data/test/tests/da/voc.txt +23829 -0
  85. data/test/tests/de/CVS/Entries +3 -0
  86. data/test/tests/de/CVS/Repository +1 -0
  87. data/test/tests/de/CVS/Root +1 -0
  88. data/test/tests/de/output.txt +35033 -0
  89. data/test/tests/de/voc.txt +35033 -0
  90. data/test/tests/en/CVS/Entries +3 -0
  91. data/test/tests/en/CVS/Repository +1 -0
  92. data/test/tests/en/CVS/Root +1 -0
  93. data/test/tests/en/output.txt +29400 -0
  94. data/test/tests/en/voc.txt +29400 -0
  95. data/test/tests/es/CVS/Entries +3 -0
  96. data/test/tests/es/CVS/Repository +1 -0
  97. data/test/tests/es/CVS/Root +1 -0
  98. data/test/tests/es/output.txt +28390 -0
  99. data/test/tests/es/voc.txt +28390 -0
  100. data/test/tests/fi/CVS/Entries +3 -0
  101. data/test/tests/fi/CVS/Repository +1 -0
  102. data/test/tests/fi/CVS/Root +1 -0
  103. data/test/tests/fi/output.txt +50000 -0
  104. data/test/tests/fi/voc.txt +50000 -0
  105. data/test/tests/fr/CVS/Entries +3 -0
  106. data/test/tests/fr/CVS/Repository +1 -0
  107. data/test/tests/fr/CVS/Root +1 -0
  108. data/test/tests/fr/output.txt +20403 -0
  109. data/test/tests/fr/voc.txt +20403 -0
  110. data/test/tests/it/CVS/Entries +3 -0
  111. data/test/tests/it/CVS/Repository +1 -0
  112. data/test/tests/it/CVS/Root +1 -0
  113. data/test/tests/it/output.txt +35494 -0
  114. data/test/tests/it/voc.txt +35494 -0
  115. data/test/tests/nl/CVS/Entries +3 -0
  116. data/test/tests/nl/CVS/Repository +1 -0
  117. data/test/tests/nl/CVS/Root +1 -0
  118. data/test/tests/nl/output.txt +45669 -0
  119. data/test/tests/nl/voc.txt +45669 -0
  120. data/test/tests/no/CVS/Entries +3 -0
  121. data/test/tests/no/CVS/Repository +1 -0
  122. data/test/tests/no/CVS/Root +1 -0
  123. data/test/tests/no/output.txt +20628 -0
  124. data/test/tests/no/voc.txt +20628 -0
  125. data/test/tests/pt/CVS/Entries +3 -0
  126. data/test/tests/pt/CVS/Repository +1 -0
  127. data/test/tests/pt/CVS/Root +1 -0
  128. data/test/tests/pt/output.txt +32016 -0
  129. data/test/tests/pt/voc.txt +32016 -0
  130. data/test/tests/ru/CVS/Entries +3 -0
  131. data/test/tests/ru/CVS/Repository +1 -0
  132. data/test/tests/ru/CVS/Root +1 -0
  133. data/test/tests/ru/output.txt +49673 -0
  134. data/test/tests/ru/voc.txt +49673 -0
  135. data/test/tests/sv/CVS/Entries +3 -0
  136. data/test/tests/sv/CVS/Repository +1 -0
  137. data/test/tests/sv/CVS/Root +1 -0
  138. data/test/tests/sv/output.txt +30623 -0
  139. data/test/tests/sv/voc.txt +30623 -0
  140. metadata +221 -0
@@ -0,0 +1,1027 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #include "../runtime/header.h"
5
+
6
+ extern int portuguese_stem(struct SN_env * z);
7
+ static int r_residual_form(struct SN_env * z);
8
+ static int r_residual_suffix(struct SN_env * z);
9
+ static int r_verb_suffix(struct SN_env * z);
10
+ static int r_standard_suffix(struct SN_env * z);
11
+ static int r_R2(struct SN_env * z);
12
+ static int r_R1(struct SN_env * z);
13
+ static int r_RV(struct SN_env * z);
14
+ static int r_mark_regions(struct SN_env * z);
15
+ static int r_postlude(struct SN_env * z);
16
+ static int r_prelude(struct SN_env * z);
17
+
18
+ extern struct SN_env * portuguese_create_env(void);
19
+ extern void portuguese_close_env(struct SN_env * z);
20
+
21
+ static symbol s_0_1[1] = { 227 };
22
+ static symbol s_0_2[1] = { 245 };
23
+
24
+ static struct among a_0[3] =
25
+ {
26
+ /* 0 */ { 0, 0, -1, 3, 0},
27
+ /* 1 */ { 1, s_0_1, 0, 1, 0},
28
+ /* 2 */ { 1, s_0_2, 0, 2, 0}
29
+ };
30
+
31
+ static symbol s_1_1[2] = { 'a', '~' };
32
+ static symbol s_1_2[2] = { 'o', '~' };
33
+
34
+ static struct among a_1[3] =
35
+ {
36
+ /* 0 */ { 0, 0, -1, 3, 0},
37
+ /* 1 */ { 2, s_1_1, 0, 1, 0},
38
+ /* 2 */ { 2, s_1_2, 0, 2, 0}
39
+ };
40
+
41
+ static symbol s_2_0[2] = { 'i', 'c' };
42
+ static symbol s_2_1[2] = { 'a', 'd' };
43
+ static symbol s_2_2[2] = { 'o', 's' };
44
+ static symbol s_2_3[2] = { 'i', 'v' };
45
+
46
+ static struct among a_2[4] =
47
+ {
48
+ /* 0 */ { 2, s_2_0, -1, -1, 0},
49
+ /* 1 */ { 2, s_2_1, -1, -1, 0},
50
+ /* 2 */ { 2, s_2_2, -1, -1, 0},
51
+ /* 3 */ { 2, s_2_3, -1, 1, 0}
52
+ };
53
+
54
+ static symbol s_3_0[4] = { 'a', 'v', 'e', 'l' };
55
+ static symbol s_3_1[4] = { 237, 'v', 'e', 'l' };
56
+
57
+ static struct among a_3[2] =
58
+ {
59
+ /* 0 */ { 4, s_3_0, -1, 1, 0},
60
+ /* 1 */ { 4, s_3_1, -1, 1, 0}
61
+ };
62
+
63
+ static symbol s_4_0[2] = { 'i', 'c' };
64
+ static symbol s_4_1[4] = { 'a', 'b', 'i', 'l' };
65
+ static symbol s_4_2[2] = { 'i', 'v' };
66
+
67
+ static struct among a_4[3] =
68
+ {
69
+ /* 0 */ { 2, s_4_0, -1, 1, 0},
70
+ /* 1 */ { 4, s_4_1, -1, 1, 0},
71
+ /* 2 */ { 2, s_4_2, -1, 1, 0}
72
+ };
73
+
74
+ static symbol s_5_0[3] = { 'i', 'c', 'a' };
75
+ static symbol s_5_1[5] = { 234, 'n', 'c', 'i', 'a' };
76
+ static symbol s_5_2[3] = { 'i', 'r', 'a' };
77
+ static symbol s_5_3[5] = { 'a', 'd', 'o', 'r', 'a' };
78
+ static symbol s_5_4[3] = { 'o', 's', 'a' };
79
+ static symbol s_5_5[4] = { 'i', 's', 't', 'a' };
80
+ static symbol s_5_6[3] = { 'i', 'v', 'a' };
81
+ static symbol s_5_7[3] = { 'e', 'z', 'a' };
82
+ static symbol s_5_8[5] = { 'l', 'o', 'g', 237, 'a' };
83
+ static symbol s_5_9[5] = { 'i', 'd', 'a', 'd', 'e' };
84
+ static symbol s_5_10[5] = { 'm', 'e', 'n', 't', 'e' };
85
+ static symbol s_5_11[6] = { 'a', 'm', 'e', 'n', 't', 'e' };
86
+ static symbol s_5_12[4] = { 225, 'v', 'e', 'l' };
87
+ static symbol s_5_13[4] = { 237, 'v', 'e', 'l' };
88
+ static symbol s_5_14[5] = { 'u', 'c', 'i', 243, 'n' };
89
+ static symbol s_5_15[3] = { 'i', 'c', 'o' };
90
+ static symbol s_5_16[4] = { 'i', 's', 'm', 'o' };
91
+ static symbol s_5_17[3] = { 'o', 's', 'o' };
92
+ static symbol s_5_18[6] = { 'a', 'm', 'e', 'n', 't', 'o' };
93
+ static symbol s_5_19[6] = { 'i', 'm', 'e', 'n', 't', 'o' };
94
+ static symbol s_5_20[3] = { 'i', 'v', 'o' };
95
+ static symbol s_5_21[5] = { 'a', 231, 'a', '~', 'o' };
96
+ static symbol s_5_22[4] = { 'a', 'd', 'o', 'r' };
97
+ static symbol s_5_23[4] = { 'i', 'c', 'a', 's' };
98
+ static symbol s_5_24[6] = { 234, 'n', 'c', 'i', 'a', 's' };
99
+ static symbol s_5_25[4] = { 'i', 'r', 'a', 's' };
100
+ static symbol s_5_26[6] = { 'a', 'd', 'o', 'r', 'a', 's' };
101
+ static symbol s_5_27[4] = { 'o', 's', 'a', 's' };
102
+ static symbol s_5_28[5] = { 'i', 's', 't', 'a', 's' };
103
+ static symbol s_5_29[4] = { 'i', 'v', 'a', 's' };
104
+ static symbol s_5_30[4] = { 'e', 'z', 'a', 's' };
105
+ static symbol s_5_31[6] = { 'l', 'o', 'g', 237, 'a', 's' };
106
+ static symbol s_5_32[6] = { 'i', 'd', 'a', 'd', 'e', 's' };
107
+ static symbol s_5_33[7] = { 'u', 'c', 'i', 'o', 'n', 'e', 's' };
108
+ static symbol s_5_34[6] = { 'a', 'd', 'o', 'r', 'e', 's' };
109
+ static symbol s_5_35[6] = { 'a', 231, 'o', '~', 'e', 's' };
110
+ static symbol s_5_36[4] = { 'i', 'c', 'o', 's' };
111
+ static symbol s_5_37[5] = { 'i', 's', 'm', 'o', 's' };
112
+ static symbol s_5_38[4] = { 'o', 's', 'o', 's' };
113
+ static symbol s_5_39[7] = { 'a', 'm', 'e', 'n', 't', 'o', 's' };
114
+ static symbol s_5_40[7] = { 'i', 'm', 'e', 'n', 't', 'o', 's' };
115
+ static symbol s_5_41[4] = { 'i', 'v', 'o', 's' };
116
+
117
+ static struct among a_5[42] =
118
+ {
119
+ /* 0 */ { 3, s_5_0, -1, 1, 0},
120
+ /* 1 */ { 5, s_5_1, -1, 4, 0},
121
+ /* 2 */ { 3, s_5_2, -1, 9, 0},
122
+ /* 3 */ { 5, s_5_3, -1, 1, 0},
123
+ /* 4 */ { 3, s_5_4, -1, 1, 0},
124
+ /* 5 */ { 4, s_5_5, -1, 1, 0},
125
+ /* 6 */ { 3, s_5_6, -1, 8, 0},
126
+ /* 7 */ { 3, s_5_7, -1, 1, 0},
127
+ /* 8 */ { 5, s_5_8, -1, 2, 0},
128
+ /* 9 */ { 5, s_5_9, -1, 7, 0},
129
+ /* 10 */ { 5, s_5_10, -1, 6, 0},
130
+ /* 11 */ { 6, s_5_11, 10, 5, 0},
131
+ /* 12 */ { 4, s_5_12, -1, 1, 0},
132
+ /* 13 */ { 4, s_5_13, -1, 1, 0},
133
+ /* 14 */ { 5, s_5_14, -1, 3, 0},
134
+ /* 15 */ { 3, s_5_15, -1, 1, 0},
135
+ /* 16 */ { 4, s_5_16, -1, 1, 0},
136
+ /* 17 */ { 3, s_5_17, -1, 1, 0},
137
+ /* 18 */ { 6, s_5_18, -1, 1, 0},
138
+ /* 19 */ { 6, s_5_19, -1, 1, 0},
139
+ /* 20 */ { 3, s_5_20, -1, 8, 0},
140
+ /* 21 */ { 5, s_5_21, -1, 1, 0},
141
+ /* 22 */ { 4, s_5_22, -1, 1, 0},
142
+ /* 23 */ { 4, s_5_23, -1, 1, 0},
143
+ /* 24 */ { 6, s_5_24, -1, 4, 0},
144
+ /* 25 */ { 4, s_5_25, -1, 9, 0},
145
+ /* 26 */ { 6, s_5_26, -1, 1, 0},
146
+ /* 27 */ { 4, s_5_27, -1, 1, 0},
147
+ /* 28 */ { 5, s_5_28, -1, 1, 0},
148
+ /* 29 */ { 4, s_5_29, -1, 8, 0},
149
+ /* 30 */ { 4, s_5_30, -1, 1, 0},
150
+ /* 31 */ { 6, s_5_31, -1, 2, 0},
151
+ /* 32 */ { 6, s_5_32, -1, 7, 0},
152
+ /* 33 */ { 7, s_5_33, -1, 3, 0},
153
+ /* 34 */ { 6, s_5_34, -1, 1, 0},
154
+ /* 35 */ { 6, s_5_35, -1, 1, 0},
155
+ /* 36 */ { 4, s_5_36, -1, 1, 0},
156
+ /* 37 */ { 5, s_5_37, -1, 1, 0},
157
+ /* 38 */ { 4, s_5_38, -1, 1, 0},
158
+ /* 39 */ { 7, s_5_39, -1, 1, 0},
159
+ /* 40 */ { 7, s_5_40, -1, 1, 0},
160
+ /* 41 */ { 4, s_5_41, -1, 8, 0}
161
+ };
162
+
163
+ static symbol s_6_0[3] = { 'a', 'd', 'a' };
164
+ static symbol s_6_1[3] = { 'i', 'd', 'a' };
165
+ static symbol s_6_2[2] = { 'i', 'a' };
166
+ static symbol s_6_3[4] = { 'a', 'r', 'i', 'a' };
167
+ static symbol s_6_4[4] = { 'e', 'r', 'i', 'a' };
168
+ static symbol s_6_5[4] = { 'i', 'r', 'i', 'a' };
169
+ static symbol s_6_6[3] = { 'a', 'r', 'a' };
170
+ static symbol s_6_7[3] = { 'e', 'r', 'a' };
171
+ static symbol s_6_8[3] = { 'i', 'r', 'a' };
172
+ static symbol s_6_9[3] = { 'a', 'v', 'a' };
173
+ static symbol s_6_10[4] = { 'a', 's', 's', 'e' };
174
+ static symbol s_6_11[4] = { 'e', 's', 's', 'e' };
175
+ static symbol s_6_12[4] = { 'i', 's', 's', 'e' };
176
+ static symbol s_6_13[4] = { 'a', 's', 't', 'e' };
177
+ static symbol s_6_14[4] = { 'e', 's', 't', 'e' };
178
+ static symbol s_6_15[4] = { 'i', 's', 't', 'e' };
179
+ static symbol s_6_16[2] = { 'e', 'i' };
180
+ static symbol s_6_17[4] = { 'a', 'r', 'e', 'i' };
181
+ static symbol s_6_18[4] = { 'e', 'r', 'e', 'i' };
182
+ static symbol s_6_19[4] = { 'i', 'r', 'e', 'i' };
183
+ static symbol s_6_20[2] = { 'a', 'm' };
184
+ static symbol s_6_21[3] = { 'i', 'a', 'm' };
185
+ static symbol s_6_22[5] = { 'a', 'r', 'i', 'a', 'm' };
186
+ static symbol s_6_23[5] = { 'e', 'r', 'i', 'a', 'm' };
187
+ static symbol s_6_24[5] = { 'i', 'r', 'i', 'a', 'm' };
188
+ static symbol s_6_25[4] = { 'a', 'r', 'a', 'm' };
189
+ static symbol s_6_26[4] = { 'e', 'r', 'a', 'm' };
190
+ static symbol s_6_27[4] = { 'i', 'r', 'a', 'm' };
191
+ static symbol s_6_28[4] = { 'a', 'v', 'a', 'm' };
192
+ static symbol s_6_29[2] = { 'e', 'm' };
193
+ static symbol s_6_30[4] = { 'a', 'r', 'e', 'm' };
194
+ static symbol s_6_31[4] = { 'e', 'r', 'e', 'm' };
195
+ static symbol s_6_32[4] = { 'i', 'r', 'e', 'm' };
196
+ static symbol s_6_33[5] = { 'a', 's', 's', 'e', 'm' };
197
+ static symbol s_6_34[5] = { 'e', 's', 's', 'e', 'm' };
198
+ static symbol s_6_35[5] = { 'i', 's', 's', 'e', 'm' };
199
+ static symbol s_6_36[3] = { 'a', 'd', 'o' };
200
+ static symbol s_6_37[3] = { 'i', 'd', 'o' };
201
+ static symbol s_6_38[4] = { 'a', 'n', 'd', 'o' };
202
+ static symbol s_6_39[4] = { 'e', 'n', 'd', 'o' };
203
+ static symbol s_6_40[4] = { 'i', 'n', 'd', 'o' };
204
+ static symbol s_6_41[5] = { 'a', 'r', 'a', '~', 'o' };
205
+ static symbol s_6_42[5] = { 'e', 'r', 'a', '~', 'o' };
206
+ static symbol s_6_43[5] = { 'i', 'r', 'a', '~', 'o' };
207
+ static symbol s_6_44[2] = { 'a', 'r' };
208
+ static symbol s_6_45[2] = { 'e', 'r' };
209
+ static symbol s_6_46[2] = { 'i', 'r' };
210
+ static symbol s_6_47[2] = { 'a', 's' };
211
+ static symbol s_6_48[4] = { 'a', 'd', 'a', 's' };
212
+ static symbol s_6_49[4] = { 'i', 'd', 'a', 's' };
213
+ static symbol s_6_50[3] = { 'i', 'a', 's' };
214
+ static symbol s_6_51[5] = { 'a', 'r', 'i', 'a', 's' };
215
+ static symbol s_6_52[5] = { 'e', 'r', 'i', 'a', 's' };
216
+ static symbol s_6_53[5] = { 'i', 'r', 'i', 'a', 's' };
217
+ static symbol s_6_54[4] = { 'a', 'r', 'a', 's' };
218
+ static symbol s_6_55[4] = { 'e', 'r', 'a', 's' };
219
+ static symbol s_6_56[4] = { 'i', 'r', 'a', 's' };
220
+ static symbol s_6_57[4] = { 'a', 'v', 'a', 's' };
221
+ static symbol s_6_58[2] = { 'e', 's' };
222
+ static symbol s_6_59[5] = { 'a', 'r', 'd', 'e', 's' };
223
+ static symbol s_6_60[5] = { 'e', 'r', 'd', 'e', 's' };
224
+ static symbol s_6_61[5] = { 'i', 'r', 'd', 'e', 's' };
225
+ static symbol s_6_62[4] = { 'a', 'r', 'e', 's' };
226
+ static symbol s_6_63[4] = { 'e', 'r', 'e', 's' };
227
+ static symbol s_6_64[4] = { 'i', 'r', 'e', 's' };
228
+ static symbol s_6_65[5] = { 'a', 's', 's', 'e', 's' };
229
+ static symbol s_6_66[5] = { 'e', 's', 's', 'e', 's' };
230
+ static symbol s_6_67[5] = { 'i', 's', 's', 'e', 's' };
231
+ static symbol s_6_68[5] = { 'a', 's', 't', 'e', 's' };
232
+ static symbol s_6_69[5] = { 'e', 's', 't', 'e', 's' };
233
+ static symbol s_6_70[5] = { 'i', 's', 't', 'e', 's' };
234
+ static symbol s_6_71[2] = { 'i', 's' };
235
+ static symbol s_6_72[3] = { 'a', 'i', 's' };
236
+ static symbol s_6_73[3] = { 'e', 'i', 's' };
237
+ static symbol s_6_74[5] = { 'a', 'r', 'e', 'i', 's' };
238
+ static symbol s_6_75[5] = { 'e', 'r', 'e', 'i', 's' };
239
+ static symbol s_6_76[5] = { 'i', 'r', 'e', 'i', 's' };
240
+ static symbol s_6_77[5] = { 225, 'r', 'e', 'i', 's' };
241
+ static symbol s_6_78[5] = { 233, 'r', 'e', 'i', 's' };
242
+ static symbol s_6_79[5] = { 237, 'r', 'e', 'i', 's' };
243
+ static symbol s_6_80[6] = { 225, 's', 's', 'e', 'i', 's' };
244
+ static symbol s_6_81[6] = { 233, 's', 's', 'e', 'i', 's' };
245
+ static symbol s_6_82[6] = { 237, 's', 's', 'e', 'i', 's' };
246
+ static symbol s_6_83[5] = { 225, 'v', 'e', 'i', 's' };
247
+ static symbol s_6_84[4] = { 237, 'e', 'i', 's' };
248
+ static symbol s_6_85[6] = { 'a', 'r', 237, 'e', 'i', 's' };
249
+ static symbol s_6_86[6] = { 'e', 'r', 237, 'e', 'i', 's' };
250
+ static symbol s_6_87[6] = { 'i', 'r', 237, 'e', 'i', 's' };
251
+ static symbol s_6_88[4] = { 'a', 'd', 'o', 's' };
252
+ static symbol s_6_89[4] = { 'i', 'd', 'o', 's' };
253
+ static symbol s_6_90[4] = { 'a', 'm', 'o', 's' };
254
+ static symbol s_6_91[6] = { 225, 'r', 'a', 'm', 'o', 's' };
255
+ static symbol s_6_92[6] = { 233, 'r', 'a', 'm', 'o', 's' };
256
+ static symbol s_6_93[6] = { 237, 'r', 'a', 'm', 'o', 's' };
257
+ static symbol s_6_94[6] = { 225, 'v', 'a', 'm', 'o', 's' };
258
+ static symbol s_6_95[5] = { 237, 'a', 'm', 'o', 's' };
259
+ static symbol s_6_96[7] = { 'a', 'r', 237, 'a', 'm', 'o', 's' };
260
+ static symbol s_6_97[7] = { 'e', 'r', 237, 'a', 'm', 'o', 's' };
261
+ static symbol s_6_98[7] = { 'i', 'r', 237, 'a', 'm', 'o', 's' };
262
+ static symbol s_6_99[4] = { 'e', 'm', 'o', 's' };
263
+ static symbol s_6_100[6] = { 'a', 'r', 'e', 'm', 'o', 's' };
264
+ static symbol s_6_101[6] = { 'e', 'r', 'e', 'm', 'o', 's' };
265
+ static symbol s_6_102[6] = { 'i', 'r', 'e', 'm', 'o', 's' };
266
+ static symbol s_6_103[7] = { 225, 's', 's', 'e', 'm', 'o', 's' };
267
+ static symbol s_6_104[7] = { 234, 's', 's', 'e', 'm', 'o', 's' };
268
+ static symbol s_6_105[7] = { 237, 's', 's', 'e', 'm', 'o', 's' };
269
+ static symbol s_6_106[4] = { 'i', 'm', 'o', 's' };
270
+ static symbol s_6_107[5] = { 'a', 'r', 'm', 'o', 's' };
271
+ static symbol s_6_108[5] = { 'e', 'r', 'm', 'o', 's' };
272
+ static symbol s_6_109[5] = { 'i', 'r', 'm', 'o', 's' };
273
+ static symbol s_6_110[4] = { 225, 'm', 'o', 's' };
274
+ static symbol s_6_111[4] = { 'a', 'r', 225, 's' };
275
+ static symbol s_6_112[4] = { 'e', 'r', 225, 's' };
276
+ static symbol s_6_113[4] = { 'i', 'r', 225, 's' };
277
+ static symbol s_6_114[2] = { 'e', 'u' };
278
+ static symbol s_6_115[2] = { 'i', 'u' };
279
+ static symbol s_6_116[2] = { 'o', 'u' };
280
+ static symbol s_6_117[3] = { 'a', 'r', 225 };
281
+ static symbol s_6_118[3] = { 'e', 'r', 225 };
282
+ static symbol s_6_119[3] = { 'i', 'r', 225 };
283
+
284
+ static struct among a_6[120] =
285
+ {
286
+ /* 0 */ { 3, s_6_0, -1, 1, 0},
287
+ /* 1 */ { 3, s_6_1, -1, 1, 0},
288
+ /* 2 */ { 2, s_6_2, -1, 1, 0},
289
+ /* 3 */ { 4, s_6_3, 2, 1, 0},
290
+ /* 4 */ { 4, s_6_4, 2, 1, 0},
291
+ /* 5 */ { 4, s_6_5, 2, 1, 0},
292
+ /* 6 */ { 3, s_6_6, -1, 1, 0},
293
+ /* 7 */ { 3, s_6_7, -1, 1, 0},
294
+ /* 8 */ { 3, s_6_8, -1, 1, 0},
295
+ /* 9 */ { 3, s_6_9, -1, 1, 0},
296
+ /* 10 */ { 4, s_6_10, -1, 1, 0},
297
+ /* 11 */ { 4, s_6_11, -1, 1, 0},
298
+ /* 12 */ { 4, s_6_12, -1, 1, 0},
299
+ /* 13 */ { 4, s_6_13, -1, 1, 0},
300
+ /* 14 */ { 4, s_6_14, -1, 1, 0},
301
+ /* 15 */ { 4, s_6_15, -1, 1, 0},
302
+ /* 16 */ { 2, s_6_16, -1, 1, 0},
303
+ /* 17 */ { 4, s_6_17, 16, 1, 0},
304
+ /* 18 */ { 4, s_6_18, 16, 1, 0},
305
+ /* 19 */ { 4, s_6_19, 16, 1, 0},
306
+ /* 20 */ { 2, s_6_20, -1, 1, 0},
307
+ /* 21 */ { 3, s_6_21, 20, 1, 0},
308
+ /* 22 */ { 5, s_6_22, 21, 1, 0},
309
+ /* 23 */ { 5, s_6_23, 21, 1, 0},
310
+ /* 24 */ { 5, s_6_24, 21, 1, 0},
311
+ /* 25 */ { 4, s_6_25, 20, 1, 0},
312
+ /* 26 */ { 4, s_6_26, 20, 1, 0},
313
+ /* 27 */ { 4, s_6_27, 20, 1, 0},
314
+ /* 28 */ { 4, s_6_28, 20, 1, 0},
315
+ /* 29 */ { 2, s_6_29, -1, 1, 0},
316
+ /* 30 */ { 4, s_6_30, 29, 1, 0},
317
+ /* 31 */ { 4, s_6_31, 29, 1, 0},
318
+ /* 32 */ { 4, s_6_32, 29, 1, 0},
319
+ /* 33 */ { 5, s_6_33, 29, 1, 0},
320
+ /* 34 */ { 5, s_6_34, 29, 1, 0},
321
+ /* 35 */ { 5, s_6_35, 29, 1, 0},
322
+ /* 36 */ { 3, s_6_36, -1, 1, 0},
323
+ /* 37 */ { 3, s_6_37, -1, 1, 0},
324
+ /* 38 */ { 4, s_6_38, -1, 1, 0},
325
+ /* 39 */ { 4, s_6_39, -1, 1, 0},
326
+ /* 40 */ { 4, s_6_40, -1, 1, 0},
327
+ /* 41 */ { 5, s_6_41, -1, 1, 0},
328
+ /* 42 */ { 5, s_6_42, -1, 1, 0},
329
+ /* 43 */ { 5, s_6_43, -1, 1, 0},
330
+ /* 44 */ { 2, s_6_44, -1, 1, 0},
331
+ /* 45 */ { 2, s_6_45, -1, 1, 0},
332
+ /* 46 */ { 2, s_6_46, -1, 1, 0},
333
+ /* 47 */ { 2, s_6_47, -1, 1, 0},
334
+ /* 48 */ { 4, s_6_48, 47, 1, 0},
335
+ /* 49 */ { 4, s_6_49, 47, 1, 0},
336
+ /* 50 */ { 3, s_6_50, 47, 1, 0},
337
+ /* 51 */ { 5, s_6_51, 50, 1, 0},
338
+ /* 52 */ { 5, s_6_52, 50, 1, 0},
339
+ /* 53 */ { 5, s_6_53, 50, 1, 0},
340
+ /* 54 */ { 4, s_6_54, 47, 1, 0},
341
+ /* 55 */ { 4, s_6_55, 47, 1, 0},
342
+ /* 56 */ { 4, s_6_56, 47, 1, 0},
343
+ /* 57 */ { 4, s_6_57, 47, 1, 0},
344
+ /* 58 */ { 2, s_6_58, -1, 1, 0},
345
+ /* 59 */ { 5, s_6_59, 58, 1, 0},
346
+ /* 60 */ { 5, s_6_60, 58, 1, 0},
347
+ /* 61 */ { 5, s_6_61, 58, 1, 0},
348
+ /* 62 */ { 4, s_6_62, 58, 1, 0},
349
+ /* 63 */ { 4, s_6_63, 58, 1, 0},
350
+ /* 64 */ { 4, s_6_64, 58, 1, 0},
351
+ /* 65 */ { 5, s_6_65, 58, 1, 0},
352
+ /* 66 */ { 5, s_6_66, 58, 1, 0},
353
+ /* 67 */ { 5, s_6_67, 58, 1, 0},
354
+ /* 68 */ { 5, s_6_68, 58, 1, 0},
355
+ /* 69 */ { 5, s_6_69, 58, 1, 0},
356
+ /* 70 */ { 5, s_6_70, 58, 1, 0},
357
+ /* 71 */ { 2, s_6_71, -1, 1, 0},
358
+ /* 72 */ { 3, s_6_72, 71, 1, 0},
359
+ /* 73 */ { 3, s_6_73, 71, 1, 0},
360
+ /* 74 */ { 5, s_6_74, 73, 1, 0},
361
+ /* 75 */ { 5, s_6_75, 73, 1, 0},
362
+ /* 76 */ { 5, s_6_76, 73, 1, 0},
363
+ /* 77 */ { 5, s_6_77, 73, 1, 0},
364
+ /* 78 */ { 5, s_6_78, 73, 1, 0},
365
+ /* 79 */ { 5, s_6_79, 73, 1, 0},
366
+ /* 80 */ { 6, s_6_80, 73, 1, 0},
367
+ /* 81 */ { 6, s_6_81, 73, 1, 0},
368
+ /* 82 */ { 6, s_6_82, 73, 1, 0},
369
+ /* 83 */ { 5, s_6_83, 73, 1, 0},
370
+ /* 84 */ { 4, s_6_84, 73, 1, 0},
371
+ /* 85 */ { 6, s_6_85, 84, 1, 0},
372
+ /* 86 */ { 6, s_6_86, 84, 1, 0},
373
+ /* 87 */ { 6, s_6_87, 84, 1, 0},
374
+ /* 88 */ { 4, s_6_88, -1, 1, 0},
375
+ /* 89 */ { 4, s_6_89, -1, 1, 0},
376
+ /* 90 */ { 4, s_6_90, -1, 1, 0},
377
+ /* 91 */ { 6, s_6_91, 90, 1, 0},
378
+ /* 92 */ { 6, s_6_92, 90, 1, 0},
379
+ /* 93 */ { 6, s_6_93, 90, 1, 0},
380
+ /* 94 */ { 6, s_6_94, 90, 1, 0},
381
+ /* 95 */ { 5, s_6_95, 90, 1, 0},
382
+ /* 96 */ { 7, s_6_96, 95, 1, 0},
383
+ /* 97 */ { 7, s_6_97, 95, 1, 0},
384
+ /* 98 */ { 7, s_6_98, 95, 1, 0},
385
+ /* 99 */ { 4, s_6_99, -1, 1, 0},
386
+ /*100 */ { 6, s_6_100, 99, 1, 0},
387
+ /*101 */ { 6, s_6_101, 99, 1, 0},
388
+ /*102 */ { 6, s_6_102, 99, 1, 0},
389
+ /*103 */ { 7, s_6_103, 99, 1, 0},
390
+ /*104 */ { 7, s_6_104, 99, 1, 0},
391
+ /*105 */ { 7, s_6_105, 99, 1, 0},
392
+ /*106 */ { 4, s_6_106, -1, 1, 0},
393
+ /*107 */ { 5, s_6_107, -1, 1, 0},
394
+ /*108 */ { 5, s_6_108, -1, 1, 0},
395
+ /*109 */ { 5, s_6_109, -1, 1, 0},
396
+ /*110 */ { 4, s_6_110, -1, 1, 0},
397
+ /*111 */ { 4, s_6_111, -1, 1, 0},
398
+ /*112 */ { 4, s_6_112, -1, 1, 0},
399
+ /*113 */ { 4, s_6_113, -1, 1, 0},
400
+ /*114 */ { 2, s_6_114, -1, 1, 0},
401
+ /*115 */ { 2, s_6_115, -1, 1, 0},
402
+ /*116 */ { 2, s_6_116, -1, 1, 0},
403
+ /*117 */ { 3, s_6_117, -1, 1, 0},
404
+ /*118 */ { 3, s_6_118, -1, 1, 0},
405
+ /*119 */ { 3, s_6_119, -1, 1, 0}
406
+ };
407
+
408
+ static symbol s_7_0[1] = { 'a' };
409
+ static symbol s_7_1[1] = { 'i' };
410
+ static symbol s_7_2[1] = { 'o' };
411
+ static symbol s_7_3[2] = { 'o', 's' };
412
+ static symbol s_7_4[1] = { 225 };
413
+ static symbol s_7_5[1] = { 237 };
414
+ static symbol s_7_6[1] = { 243 };
415
+
416
+ static struct among a_7[7] =
417
+ {
418
+ /* 0 */ { 1, s_7_0, -1, 1, 0},
419
+ /* 1 */ { 1, s_7_1, -1, 1, 0},
420
+ /* 2 */ { 1, s_7_2, -1, 1, 0},
421
+ /* 3 */ { 2, s_7_3, -1, 1, 0},
422
+ /* 4 */ { 1, s_7_4, -1, 1, 0},
423
+ /* 5 */ { 1, s_7_5, -1, 1, 0},
424
+ /* 6 */ { 1, s_7_6, -1, 1, 0}
425
+ };
426
+
427
+ static symbol s_8_0[1] = { 'e' };
428
+ static symbol s_8_1[1] = { 231 };
429
+ static symbol s_8_2[1] = { 233 };
430
+ static symbol s_8_3[1] = { 234 };
431
+
432
+ static struct among a_8[4] =
433
+ {
434
+ /* 0 */ { 1, s_8_0, -1, 1, 0},
435
+ /* 1 */ { 1, s_8_1, -1, 2, 0},
436
+ /* 2 */ { 1, s_8_2, -1, 1, 0},
437
+ /* 3 */ { 1, s_8_3, -1, 1, 0}
438
+ };
439
+
440
+ static unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 19, 12, 2 };
441
+
442
+ static symbol s_0[] = { 'a', '~' };
443
+ static symbol s_1[] = { 'o', '~' };
444
+ static symbol s_2[] = { 227 };
445
+ static symbol s_3[] = { 245 };
446
+ static symbol s_4[] = { 'l', 'o', 'g' };
447
+ static symbol s_5[] = { 'u' };
448
+ static symbol s_6[] = { 'e', 'n', 't', 'e' };
449
+ static symbol s_7[] = { 'a', 't' };
450
+ static symbol s_8[] = { 'a', 't' };
451
+ static symbol s_9[] = { 'e' };
452
+ static symbol s_10[] = { 'i', 'r' };
453
+ static symbol s_11[] = { 'u' };
454
+ static symbol s_12[] = { 'g' };
455
+ static symbol s_13[] = { 'i' };
456
+ static symbol s_14[] = { 'c' };
457
+ static symbol s_15[] = { 'c' };
458
+ static symbol s_16[] = { 'i' };
459
+ static symbol s_17[] = { 'c' };
460
+
461
+ static int r_prelude(struct SN_env * z) {
462
+ int among_var;
463
+ while(1) { /* repeat, line 36 */
464
+ int c = z->c;
465
+ z->bra = z->c; /* [, line 37 */
466
+ among_var = find_among(z, a_0, 3); /* substring, line 37 */
467
+ if (!(among_var)) goto lab0;
468
+ z->ket = z->c; /* ], line 37 */
469
+ switch(among_var) {
470
+ case 0: goto lab0;
471
+ case 1:
472
+ { int ret;
473
+ ret = slice_from_s(z, 2, s_0); /* <-, line 38 */
474
+ if (ret < 0) return ret;
475
+ }
476
+ break;
477
+ case 2:
478
+ { int ret;
479
+ ret = slice_from_s(z, 2, s_1); /* <-, line 39 */
480
+ if (ret < 0) return ret;
481
+ }
482
+ break;
483
+ case 3:
484
+ if (z->c >= z->l) goto lab0;
485
+ z->c++; /* next, line 40 */
486
+ break;
487
+ }
488
+ continue;
489
+ lab0:
490
+ z->c = c;
491
+ break;
492
+ }
493
+ return 1;
494
+ }
495
+
496
+ static int r_mark_regions(struct SN_env * z) {
497
+ z->I[0] = z->l;
498
+ z->I[1] = z->l;
499
+ z->I[2] = z->l;
500
+ { int c = z->c; /* do, line 50 */
501
+ { int c = z->c; /* or, line 52 */
502
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab2;
503
+ { int c = z->c; /* or, line 51 */
504
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab4;
505
+ while(1) { /* gopast, line 51 */
506
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab5;
507
+ break;
508
+ lab5:
509
+ if (z->c >= z->l) goto lab4;
510
+ z->c++;
511
+ }
512
+ goto lab3;
513
+ lab4:
514
+ z->c = c;
515
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab2;
516
+ while(1) { /* gopast, line 51 */
517
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab6;
518
+ break;
519
+ lab6:
520
+ if (z->c >= z->l) goto lab2;
521
+ z->c++;
522
+ }
523
+ }
524
+ lab3:
525
+ goto lab1;
526
+ lab2:
527
+ z->c = c;
528
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab0;
529
+ { int c = z->c; /* or, line 53 */
530
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab8;
531
+ while(1) { /* gopast, line 53 */
532
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab9;
533
+ break;
534
+ lab9:
535
+ if (z->c >= z->l) goto lab8;
536
+ z->c++;
537
+ }
538
+ goto lab7;
539
+ lab8:
540
+ z->c = c;
541
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab0;
542
+ if (z->c >= z->l) goto lab0;
543
+ z->c++; /* next, line 53 */
544
+ }
545
+ lab7:
546
+ ;
547
+ }
548
+ lab1:
549
+ z->I[0] = z->c; /* setmark pV, line 54 */
550
+ lab0:
551
+ z->c = c;
552
+ }
553
+ { int c = z->c; /* do, line 56 */
554
+ while(1) { /* gopast, line 57 */
555
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab11;
556
+ break;
557
+ lab11:
558
+ if (z->c >= z->l) goto lab10;
559
+ z->c++;
560
+ }
561
+ while(1) { /* gopast, line 57 */
562
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab12;
563
+ break;
564
+ lab12:
565
+ if (z->c >= z->l) goto lab10;
566
+ z->c++;
567
+ }
568
+ z->I[1] = z->c; /* setmark p1, line 57 */
569
+ while(1) { /* gopast, line 58 */
570
+ if (!(in_grouping(z, g_v, 97, 250))) goto lab13;
571
+ break;
572
+ lab13:
573
+ if (z->c >= z->l) goto lab10;
574
+ z->c++;
575
+ }
576
+ while(1) { /* gopast, line 58 */
577
+ if (!(out_grouping(z, g_v, 97, 250))) goto lab14;
578
+ break;
579
+ lab14:
580
+ if (z->c >= z->l) goto lab10;
581
+ z->c++;
582
+ }
583
+ z->I[2] = z->c; /* setmark p2, line 58 */
584
+ lab10:
585
+ z->c = c;
586
+ }
587
+ return 1;
588
+ }
589
+
590
+ static int r_postlude(struct SN_env * z) {
591
+ int among_var;
592
+ while(1) { /* repeat, line 62 */
593
+ int c = z->c;
594
+ z->bra = z->c; /* [, line 63 */
595
+ among_var = find_among(z, a_1, 3); /* substring, line 63 */
596
+ if (!(among_var)) goto lab0;
597
+ z->ket = z->c; /* ], line 63 */
598
+ switch(among_var) {
599
+ case 0: goto lab0;
600
+ case 1:
601
+ { int ret;
602
+ ret = slice_from_s(z, 1, s_2); /* <-, line 64 */
603
+ if (ret < 0) return ret;
604
+ }
605
+ break;
606
+ case 2:
607
+ { int ret;
608
+ ret = slice_from_s(z, 1, s_3); /* <-, line 65 */
609
+ if (ret < 0) return ret;
610
+ }
611
+ break;
612
+ case 3:
613
+ if (z->c >= z->l) goto lab0;
614
+ z->c++; /* next, line 66 */
615
+ break;
616
+ }
617
+ continue;
618
+ lab0:
619
+ z->c = c;
620
+ break;
621
+ }
622
+ return 1;
623
+ }
624
+
625
+ static int r_RV(struct SN_env * z) {
626
+ if (!(z->I[0] <= z->c)) return 0;
627
+ return 1;
628
+ }
629
+
630
+ static int r_R1(struct SN_env * z) {
631
+ if (!(z->I[1] <= z->c)) return 0;
632
+ return 1;
633
+ }
634
+
635
+ static int r_R2(struct SN_env * z) {
636
+ if (!(z->I[2] <= z->c)) return 0;
637
+ return 1;
638
+ }
639
+
640
+ static int r_standard_suffix(struct SN_env * z) {
641
+ int among_var;
642
+ z->ket = z->c; /* [, line 77 */
643
+ among_var = find_among_b(z, a_5, 42); /* substring, line 77 */
644
+ if (!(among_var)) return 0;
645
+ z->bra = z->c; /* ], line 77 */
646
+ switch(among_var) {
647
+ case 0: return 0;
648
+ case 1:
649
+ { int ret = r_R2(z);
650
+ if (ret == 0) return 0; /* call R2, line 92 */
651
+ if (ret < 0) return ret;
652
+ }
653
+ { int ret;
654
+ ret = slice_del(z); /* delete, line 92 */
655
+ if (ret < 0) return ret;
656
+ }
657
+ break;
658
+ case 2:
659
+ { int ret = r_R2(z);
660
+ if (ret == 0) return 0; /* call R2, line 97 */
661
+ if (ret < 0) return ret;
662
+ }
663
+ { int ret;
664
+ ret = slice_from_s(z, 3, s_4); /* <-, line 97 */
665
+ if (ret < 0) return ret;
666
+ }
667
+ break;
668
+ case 3:
669
+ { int ret = r_R2(z);
670
+ if (ret == 0) return 0; /* call R2, line 101 */
671
+ if (ret < 0) return ret;
672
+ }
673
+ { int ret;
674
+ ret = slice_from_s(z, 1, s_5); /* <-, line 101 */
675
+ if (ret < 0) return ret;
676
+ }
677
+ break;
678
+ case 4:
679
+ { int ret = r_R2(z);
680
+ if (ret == 0) return 0; /* call R2, line 105 */
681
+ if (ret < 0) return ret;
682
+ }
683
+ { int ret;
684
+ ret = slice_from_s(z, 4, s_6); /* <-, line 105 */
685
+ if (ret < 0) return ret;
686
+ }
687
+ break;
688
+ case 5:
689
+ { int ret = r_R1(z);
690
+ if (ret == 0) return 0; /* call R1, line 109 */
691
+ if (ret < 0) return ret;
692
+ }
693
+ { int ret;
694
+ ret = slice_del(z); /* delete, line 109 */
695
+ if (ret < 0) return ret;
696
+ }
697
+ { int m = z->l - z->c; (void) m; /* try, line 110 */
698
+ z->ket = z->c; /* [, line 111 */
699
+ among_var = find_among_b(z, a_2, 4); /* substring, line 111 */
700
+ if (!(among_var)) { z->c = z->l - m; goto lab0; }
701
+ z->bra = z->c; /* ], line 111 */
702
+ { int ret = r_R2(z);
703
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 111 */
704
+ if (ret < 0) return ret;
705
+ }
706
+ { int ret;
707
+ ret = slice_del(z); /* delete, line 111 */
708
+ if (ret < 0) return ret;
709
+ }
710
+ switch(among_var) {
711
+ case 0: { z->c = z->l - m; goto lab0; }
712
+ case 1:
713
+ z->ket = z->c; /* [, line 112 */
714
+ if (!(eq_s_b(z, 2, s_7))) { z->c = z->l - m; goto lab0; }
715
+ z->bra = z->c; /* ], line 112 */
716
+ { int ret = r_R2(z);
717
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 112 */
718
+ if (ret < 0) return ret;
719
+ }
720
+ { int ret;
721
+ ret = slice_del(z); /* delete, line 112 */
722
+ if (ret < 0) return ret;
723
+ }
724
+ break;
725
+ }
726
+ lab0:
727
+ ;
728
+ }
729
+ break;
730
+ case 6:
731
+ { int ret = r_R2(z);
732
+ if (ret == 0) return 0; /* call R2, line 121 */
733
+ if (ret < 0) return ret;
734
+ }
735
+ { int ret;
736
+ ret = slice_del(z); /* delete, line 121 */
737
+ if (ret < 0) return ret;
738
+ }
739
+ { int m = z->l - z->c; (void) m; /* try, line 122 */
740
+ z->ket = z->c; /* [, line 123 */
741
+ among_var = find_among_b(z, a_3, 2); /* substring, line 123 */
742
+ if (!(among_var)) { z->c = z->l - m; goto lab1; }
743
+ z->bra = z->c; /* ], line 123 */
744
+ switch(among_var) {
745
+ case 0: { z->c = z->l - m; goto lab1; }
746
+ case 1:
747
+ { int ret = r_R2(z);
748
+ if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 125 */
749
+ if (ret < 0) return ret;
750
+ }
751
+ { int ret;
752
+ ret = slice_del(z); /* delete, line 125 */
753
+ if (ret < 0) return ret;
754
+ }
755
+ break;
756
+ }
757
+ lab1:
758
+ ;
759
+ }
760
+ break;
761
+ case 7:
762
+ { int ret = r_R2(z);
763
+ if (ret == 0) return 0; /* call R2, line 132 */
764
+ if (ret < 0) return ret;
765
+ }
766
+ { int ret;
767
+ ret = slice_del(z); /* delete, line 132 */
768
+ if (ret < 0) return ret;
769
+ }
770
+ { int m = z->l - z->c; (void) m; /* try, line 133 */
771
+ z->ket = z->c; /* [, line 134 */
772
+ among_var = find_among_b(z, a_4, 3); /* substring, line 134 */
773
+ if (!(among_var)) { z->c = z->l - m; goto lab2; }
774
+ z->bra = z->c; /* ], line 134 */
775
+ switch(among_var) {
776
+ case 0: { z->c = z->l - m; goto lab2; }
777
+ case 1:
778
+ { int ret = r_R2(z);
779
+ if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 137 */
780
+ if (ret < 0) return ret;
781
+ }
782
+ { int ret;
783
+ ret = slice_del(z); /* delete, line 137 */
784
+ if (ret < 0) return ret;
785
+ }
786
+ break;
787
+ }
788
+ lab2:
789
+ ;
790
+ }
791
+ break;
792
+ case 8:
793
+ { int ret = r_R2(z);
794
+ if (ret == 0) return 0; /* call R2, line 144 */
795
+ if (ret < 0) return ret;
796
+ }
797
+ { int ret;
798
+ ret = slice_del(z); /* delete, line 144 */
799
+ if (ret < 0) return ret;
800
+ }
801
+ { int m = z->l - z->c; (void) m; /* try, line 145 */
802
+ z->ket = z->c; /* [, line 146 */
803
+ if (!(eq_s_b(z, 2, s_8))) { z->c = z->l - m; goto lab3; }
804
+ z->bra = z->c; /* ], line 146 */
805
+ { int ret = r_R2(z);
806
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 146 */
807
+ if (ret < 0) return ret;
808
+ }
809
+ { int ret;
810
+ ret = slice_del(z); /* delete, line 146 */
811
+ if (ret < 0) return ret;
812
+ }
813
+ lab3:
814
+ ;
815
+ }
816
+ break;
817
+ case 9:
818
+ { int ret = r_RV(z);
819
+ if (ret == 0) return 0; /* call RV, line 151 */
820
+ if (ret < 0) return ret;
821
+ }
822
+ if (!(eq_s_b(z, 1, s_9))) return 0;
823
+ { int ret;
824
+ ret = slice_from_s(z, 2, s_10); /* <-, line 152 */
825
+ if (ret < 0) return ret;
826
+ }
827
+ break;
828
+ }
829
+ return 1;
830
+ }
831
+
832
+ static int r_verb_suffix(struct SN_env * z) {
833
+ int among_var;
834
+ { int m3; /* setlimit, line 157 */
835
+ int m = z->l - z->c; (void) m;
836
+ if (z->c < z->I[0]) return 0;
837
+ z->c = z->I[0]; /* tomark, line 157 */
838
+ m3 = z->lb; z->lb = z->c;
839
+ z->c = z->l - m;
840
+ z->ket = z->c; /* [, line 158 */
841
+ among_var = find_among_b(z, a_6, 120); /* substring, line 158 */
842
+ if (!(among_var)) { z->lb = m3; return 0; }
843
+ z->bra = z->c; /* ], line 158 */
844
+ switch(among_var) {
845
+ case 0: { z->lb = m3; return 0; }
846
+ case 1:
847
+ { int ret;
848
+ ret = slice_del(z); /* delete, line 177 */
849
+ if (ret < 0) return ret;
850
+ }
851
+ break;
852
+ }
853
+ z->lb = m3;
854
+ }
855
+ return 1;
856
+ }
857
+
858
+ static int r_residual_suffix(struct SN_env * z) {
859
+ int among_var;
860
+ z->ket = z->c; /* [, line 182 */
861
+ among_var = find_among_b(z, a_7, 7); /* substring, line 182 */
862
+ if (!(among_var)) return 0;
863
+ z->bra = z->c; /* ], line 182 */
864
+ switch(among_var) {
865
+ case 0: return 0;
866
+ case 1:
867
+ { int ret = r_RV(z);
868
+ if (ret == 0) return 0; /* call RV, line 185 */
869
+ if (ret < 0) return ret;
870
+ }
871
+ { int ret;
872
+ ret = slice_del(z); /* delete, line 185 */
873
+ if (ret < 0) return ret;
874
+ }
875
+ break;
876
+ }
877
+ return 1;
878
+ }
879
+
880
+ static int r_residual_form(struct SN_env * z) {
881
+ int among_var;
882
+ z->ket = z->c; /* [, line 190 */
883
+ among_var = find_among_b(z, a_8, 4); /* substring, line 190 */
884
+ if (!(among_var)) return 0;
885
+ z->bra = z->c; /* ], line 190 */
886
+ switch(among_var) {
887
+ case 0: return 0;
888
+ case 1:
889
+ { int ret = r_RV(z);
890
+ if (ret == 0) return 0; /* call RV, line 192 */
891
+ if (ret < 0) return ret;
892
+ }
893
+ { int ret;
894
+ ret = slice_del(z); /* delete, line 192 */
895
+ if (ret < 0) return ret;
896
+ }
897
+ z->ket = z->c; /* [, line 192 */
898
+ { int m = z->l - z->c; (void) m; /* or, line 192 */
899
+ if (!(eq_s_b(z, 1, s_11))) goto lab1;
900
+ z->bra = z->c; /* ], line 192 */
901
+ { int m_test = z->l - z->c; /* test, line 192 */
902
+ if (!(eq_s_b(z, 1, s_12))) goto lab1;
903
+ z->c = z->l - m_test;
904
+ }
905
+ goto lab0;
906
+ lab1:
907
+ z->c = z->l - m;
908
+ if (!(eq_s_b(z, 1, s_13))) return 0;
909
+ z->bra = z->c; /* ], line 193 */
910
+ { int m_test = z->l - z->c; /* test, line 193 */
911
+ if (!(eq_s_b(z, 1, s_14))) return 0;
912
+ z->c = z->l - m_test;
913
+ }
914
+ }
915
+ lab0:
916
+ { int ret = r_RV(z);
917
+ if (ret == 0) return 0; /* call RV, line 193 */
918
+ if (ret < 0) return ret;
919
+ }
920
+ { int ret;
921
+ ret = slice_del(z); /* delete, line 193 */
922
+ if (ret < 0) return ret;
923
+ }
924
+ break;
925
+ case 2:
926
+ { int ret;
927
+ ret = slice_from_s(z, 1, s_15); /* <-, line 194 */
928
+ if (ret < 0) return ret;
929
+ }
930
+ break;
931
+ }
932
+ return 1;
933
+ }
934
+
935
+ extern int portuguese_stem(struct SN_env * z) {
936
+ { int c = z->c; /* do, line 200 */
937
+ { int ret = r_prelude(z);
938
+ if (ret == 0) goto lab0; /* call prelude, line 200 */
939
+ if (ret < 0) return ret;
940
+ }
941
+ lab0:
942
+ z->c = c;
943
+ }
944
+ { int c = z->c; /* do, line 201 */
945
+ { int ret = r_mark_regions(z);
946
+ if (ret == 0) goto lab1; /* call mark_regions, line 201 */
947
+ if (ret < 0) return ret;
948
+ }
949
+ lab1:
950
+ z->c = c;
951
+ }
952
+ z->lb = z->c; z->c = z->l; /* backwards, line 202 */
953
+
954
+ { int m = z->l - z->c; (void) m; /* do, line 203 */
955
+ { int m = z->l - z->c; (void) m; /* or, line 207 */
956
+ { int m = z->l - z->c; (void) m; /* and, line 205 */
957
+ { int m = z->l - z->c; (void) m; /* or, line 204 */
958
+ { int ret = r_standard_suffix(z);
959
+ if (ret == 0) goto lab6; /* call standard_suffix, line 204 */
960
+ if (ret < 0) return ret;
961
+ }
962
+ goto lab5;
963
+ lab6:
964
+ z->c = z->l - m;
965
+ { int ret = r_verb_suffix(z);
966
+ if (ret == 0) goto lab4; /* call verb_suffix, line 204 */
967
+ if (ret < 0) return ret;
968
+ }
969
+ }
970
+ lab5:
971
+ z->c = z->l - m;
972
+ { int m = z->l - z->c; (void) m; /* do, line 205 */
973
+ z->ket = z->c; /* [, line 205 */
974
+ if (!(eq_s_b(z, 1, s_16))) goto lab7;
975
+ z->bra = z->c; /* ], line 205 */
976
+ { int m_test = z->l - z->c; /* test, line 205 */
977
+ if (!(eq_s_b(z, 1, s_17))) goto lab7;
978
+ z->c = z->l - m_test;
979
+ }
980
+ { int ret = r_RV(z);
981
+ if (ret == 0) goto lab7; /* call RV, line 205 */
982
+ if (ret < 0) return ret;
983
+ }
984
+ { int ret;
985
+ ret = slice_del(z); /* delete, line 205 */
986
+ if (ret < 0) return ret;
987
+ }
988
+ lab7:
989
+ z->c = z->l - m;
990
+ }
991
+ }
992
+ goto lab3;
993
+ lab4:
994
+ z->c = z->l - m;
995
+ { int ret = r_residual_suffix(z);
996
+ if (ret == 0) goto lab2; /* call residual_suffix, line 207 */
997
+ if (ret < 0) return ret;
998
+ }
999
+ }
1000
+ lab3:
1001
+ lab2:
1002
+ z->c = z->l - m;
1003
+ }
1004
+ { int m = z->l - z->c; (void) m; /* do, line 209 */
1005
+ { int ret = r_residual_form(z);
1006
+ if (ret == 0) goto lab8; /* call residual_form, line 209 */
1007
+ if (ret < 0) return ret;
1008
+ }
1009
+ lab8:
1010
+ z->c = z->l - m;
1011
+ }
1012
+ z->c = z->lb;
1013
+ { int c = z->c; /* do, line 211 */
1014
+ { int ret = r_postlude(z);
1015
+ if (ret == 0) goto lab9; /* call postlude, line 211 */
1016
+ if (ret < 0) return ret;
1017
+ }
1018
+ lab9:
1019
+ z->c = c;
1020
+ }
1021
+ return 1;
1022
+ }
1023
+
1024
+ extern struct SN_env * portuguese_create_env(void) { return SN_create_env(0, 3, 0); }
1025
+
1026
+ extern void portuguese_close_env(struct SN_env * z) { SN_close_env(z); }
1027
+