This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
/
RomanianStemmer.generated.cs
1082 lines (1035 loc) · 33.8 KB
/
RomanianStemmer.generated.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// This file was generated automatically by the Snowball to C# compiler
#pragma warning disable 0164
#pragma warning disable 0162
namespace Accord.MachineLearning.Text.Stemmers
{
using System;
using System.Text;
///<summary>
/// This class was automatically generated by a Snowball to C# compiler
/// It implements the stemming algorithm defined by a snowball script.
///</summary>
///
[System.CodeDom.Compiler.GeneratedCode("Snowball", "1.0.0")]
public partial class RomanianStemmer : StemmerBase
{
private bool B_standard_suffix_removed;
private int I_p2;
private int I_p1;
private int I_pV;
private static string g_v = "aeiou\u00E2\u00EE\u0103";
private readonly Among[] a_0;
private readonly Among[] a_1;
private readonly Among[] a_2;
private readonly Among[] a_3;
private readonly Among[] a_4;
private readonly Among[] a_5;
/// <summary>
/// Initializes a new instance of the <see cref="RomanianStemmer"/> class.
/// </summary>
///
public RomanianStemmer()
{
a_0 = new[]
{
new Among("", -1, 3),
new Among("I", 0, 1),
new Among("U", 0, 2)
};
a_1 = new[]
{
new Among("ea", -1, 3),
new Among("a\u0163ia", -1, 7),
new Among("aua", -1, 2),
new Among("iua", -1, 4),
new Among("a\u0163ie", -1, 7),
new Among("ele", -1, 3),
new Among("ile", -1, 5),
new Among("iile", 6, 4),
new Among("iei", -1, 4),
new Among("atei", -1, 6),
new Among("ii", -1, 4),
new Among("ului", -1, 1),
new Among("ul", -1, 1),
new Among("elor", -1, 3),
new Among("ilor", -1, 4),
new Among("iilor", 14, 4)
};
a_2 = new[]
{
new Among("icala", -1, 4),
new Among("iciva", -1, 4),
new Among("ativa", -1, 5),
new Among("itiva", -1, 6),
new Among("icale", -1, 4),
new Among("a\u0163iune", -1, 5),
new Among("i\u0163iune", -1, 6),
new Among("atoare", -1, 5),
new Among("itoare", -1, 6),
new Among("\u0103toare", -1, 5),
new Among("icitate", -1, 4),
new Among("abilitate", -1, 1),
new Among("ibilitate", -1, 2),
new Among("ivitate", -1, 3),
new Among("icive", -1, 4),
new Among("ative", -1, 5),
new Among("itive", -1, 6),
new Among("icali", -1, 4),
new Among("atori", -1, 5),
new Among("icatori", 18, 4),
new Among("itori", -1, 6),
new Among("\u0103tori", -1, 5),
new Among("icitati", -1, 4),
new Among("abilitati", -1, 1),
new Among("ivitati", -1, 3),
new Among("icivi", -1, 4),
new Among("ativi", -1, 5),
new Among("itivi", -1, 6),
new Among("icit\u0103i", -1, 4),
new Among("abilit\u0103i", -1, 1),
new Among("ivit\u0103i", -1, 3),
new Among("icit\u0103\u0163i", -1, 4),
new Among("abilit\u0103\u0163i", -1, 1),
new Among("ivit\u0103\u0163i", -1, 3),
new Among("ical", -1, 4),
new Among("ator", -1, 5),
new Among("icator", 35, 4),
new Among("itor", -1, 6),
new Among("\u0103tor", -1, 5),
new Among("iciv", -1, 4),
new Among("ativ", -1, 5),
new Among("itiv", -1, 6),
new Among("ical\u0103", -1, 4),
new Among("iciv\u0103", -1, 4),
new Among("ativ\u0103", -1, 5),
new Among("itiv\u0103", -1, 6)
};
a_3 = new[]
{
new Among("ica", -1, 1),
new Among("abila", -1, 1),
new Among("ibila", -1, 1),
new Among("oasa", -1, 1),
new Among("ata", -1, 1),
new Among("ita", -1, 1),
new Among("anta", -1, 1),
new Among("ista", -1, 3),
new Among("uta", -1, 1),
new Among("iva", -1, 1),
new Among("ic", -1, 1),
new Among("ice", -1, 1),
new Among("abile", -1, 1),
new Among("ibile", -1, 1),
new Among("isme", -1, 3),
new Among("iune", -1, 2),
new Among("oase", -1, 1),
new Among("ate", -1, 1),
new Among("itate", 17, 1),
new Among("ite", -1, 1),
new Among("ante", -1, 1),
new Among("iste", -1, 3),
new Among("ute", -1, 1),
new Among("ive", -1, 1),
new Among("ici", -1, 1),
new Among("abili", -1, 1),
new Among("ibili", -1, 1),
new Among("iuni", -1, 2),
new Among("atori", -1, 1),
new Among("osi", -1, 1),
new Among("ati", -1, 1),
new Among("itati", 30, 1),
new Among("iti", -1, 1),
new Among("anti", -1, 1),
new Among("isti", -1, 3),
new Among("uti", -1, 1),
new Among("i\u015Fti", -1, 3),
new Among("ivi", -1, 1),
new Among("it\u0103i", -1, 1),
new Among("o\u015Fi", -1, 1),
new Among("it\u0103\u0163i", -1, 1),
new Among("abil", -1, 1),
new Among("ibil", -1, 1),
new Among("ism", -1, 3),
new Among("ator", -1, 1),
new Among("os", -1, 1),
new Among("at", -1, 1),
new Among("it", -1, 1),
new Among("ant", -1, 1),
new Among("ist", -1, 3),
new Among("ut", -1, 1),
new Among("iv", -1, 1),
new Among("ic\u0103", -1, 1),
new Among("abil\u0103", -1, 1),
new Among("ibil\u0103", -1, 1),
new Among("oas\u0103", -1, 1),
new Among("at\u0103", -1, 1),
new Among("it\u0103", -1, 1),
new Among("ant\u0103", -1, 1),
new Among("ist\u0103", -1, 3),
new Among("ut\u0103", -1, 1),
new Among("iv\u0103", -1, 1)
};
a_4 = new[]
{
new Among("ea", -1, 1),
new Among("ia", -1, 1),
new Among("esc", -1, 1),
new Among("\u0103sc", -1, 1),
new Among("ind", -1, 1),
new Among("\u00E2nd", -1, 1),
new Among("are", -1, 1),
new Among("ere", -1, 1),
new Among("ire", -1, 1),
new Among("\u00E2re", -1, 1),
new Among("se", -1, 2),
new Among("ase", 10, 1),
new Among("sese", 10, 2),
new Among("ise", 10, 1),
new Among("use", 10, 1),
new Among("\u00E2se", 10, 1),
new Among("e\u015Fte", -1, 1),
new Among("\u0103\u015Fte", -1, 1),
new Among("eze", -1, 1),
new Among("ai", -1, 1),
new Among("eai", 19, 1),
new Among("iai", 19, 1),
new Among("sei", -1, 2),
new Among("e\u015Fti", -1, 1),
new Among("\u0103\u015Fti", -1, 1),
new Among("ui", -1, 1),
new Among("ezi", -1, 1),
new Among("\u00E2i", -1, 1),
new Among("a\u015Fi", -1, 1),
new Among("se\u015Fi", -1, 2),
new Among("ase\u015Fi", 29, 1),
new Among("sese\u015Fi", 29, 2),
new Among("ise\u015Fi", 29, 1),
new Among("use\u015Fi", 29, 1),
new Among("\u00E2se\u015Fi", 29, 1),
new Among("i\u015Fi", -1, 1),
new Among("u\u015Fi", -1, 1),
new Among("\u00E2\u015Fi", -1, 1),
new Among("a\u0163i", -1, 2),
new Among("ea\u0163i", 38, 1),
new Among("ia\u0163i", 38, 1),
new Among("e\u0163i", -1, 2),
new Among("i\u0163i", -1, 2),
new Among("\u00E2\u0163i", -1, 2),
new Among("ar\u0103\u0163i", -1, 1),
new Among("ser\u0103\u0163i", -1, 2),
new Among("aser\u0103\u0163i", 45, 1),
new Among("seser\u0103\u0163i", 45, 2),
new Among("iser\u0103\u0163i", 45, 1),
new Among("user\u0103\u0163i", 45, 1),
new Among("\u00E2ser\u0103\u0163i", 45, 1),
new Among("ir\u0103\u0163i", -1, 1),
new Among("ur\u0103\u0163i", -1, 1),
new Among("\u00E2r\u0103\u0163i", -1, 1),
new Among("am", -1, 1),
new Among("eam", 54, 1),
new Among("iam", 54, 1),
new Among("em", -1, 2),
new Among("asem", 57, 1),
new Among("sesem", 57, 2),
new Among("isem", 57, 1),
new Among("usem", 57, 1),
new Among("\u00E2sem", 57, 1),
new Among("im", -1, 2),
new Among("\u00E2m", -1, 2),
new Among("\u0103m", -1, 2),
new Among("ar\u0103m", 65, 1),
new Among("ser\u0103m", 65, 2),
new Among("aser\u0103m", 67, 1),
new Among("seser\u0103m", 67, 2),
new Among("iser\u0103m", 67, 1),
new Among("user\u0103m", 67, 1),
new Among("\u00E2ser\u0103m", 67, 1),
new Among("ir\u0103m", 65, 1),
new Among("ur\u0103m", 65, 1),
new Among("\u00E2r\u0103m", 65, 1),
new Among("au", -1, 1),
new Among("eau", 76, 1),
new Among("iau", 76, 1),
new Among("indu", -1, 1),
new Among("\u00E2ndu", -1, 1),
new Among("ez", -1, 1),
new Among("easc\u0103", -1, 1),
new Among("ar\u0103", -1, 1),
new Among("ser\u0103", -1, 2),
new Among("aser\u0103", 84, 1),
new Among("seser\u0103", 84, 2),
new Among("iser\u0103", 84, 1),
new Among("user\u0103", 84, 1),
new Among("\u00E2ser\u0103", 84, 1),
new Among("ir\u0103", -1, 1),
new Among("ur\u0103", -1, 1),
new Among("\u00E2r\u0103", -1, 1),
new Among("eaz\u0103", -1, 1)
};
a_5 = new[]
{
new Among("a", -1, 1),
new Among("e", -1, 1),
new Among("ie", 1, 1),
new Among("i", -1, 1),
new Among("\u0103", -1, 1)
};
}
private int r_prelude()
{
// (, line 31
// repeat, line 32
while (true)
{
int c1 = cursor;
while (true)
{
// goto, line 32
int c2 = cursor;
// (, line 32
if (in_grouping(g_v, 97, 259, false) != 0)
{
goto lab1;
}
// [, line 33
bra = cursor;
// or, line 33
{
int c3 = cursor;
// (, line 33
// literal, line 33
if (!(eq_s("u")))
{
goto lab3;
}
// ], line 33
ket = cursor;
if (in_grouping(g_v, 97, 259, false) != 0)
{
goto lab3;
}
// <-, line 33
slice_from("U");
goto lab2;
lab3: ;
cursor = c3;
// (, line 34
// literal, line 34
if (!(eq_s("i")))
{
goto lab1;
}
// ], line 34
ket = cursor;
if (in_grouping(g_v, 97, 259, false) != 0)
{
goto lab1;
}
// <-, line 34
slice_from("I");
}
lab2: ;
cursor = c2;
break;
lab1: ;
cursor = c2;
// goto, line 32
if (cursor >= limit)
{
goto lab0;
}
cursor++;
}
continue;
lab0: ;
cursor = c1;
break;
}
return 1;
}
private int r_mark_regions()
{
// (, line 38
I_pV = limit;
I_p1 = limit;
I_p2 = limit;
// do, line 44
{
int c1 = cursor;
// (, line 44
// or, line 46
{
int c2 = cursor;
// (, line 45
if (in_grouping(g_v, 97, 259, false) != 0)
{
goto lab2;
}
// or, line 45
{
int c3 = cursor;
// (, line 45
if (out_grouping(g_v, 97, 259, false) != 0)
{
goto lab4;
}
{
/* gopast */
int ret = out_grouping(g_v, 97, 259, true);
if (ret < 0)
{
goto lab4;
}
cursor += ret;
}
goto lab3;
lab4: ;
cursor = c3;
// (, line 45
if (in_grouping(g_v, 97, 259, false) != 0)
{
goto lab2;
}
{
/* gopast */
int ret = in_grouping(g_v, 97, 259, true);
if (ret < 0)
{
goto lab2;
}
cursor += ret;
}
}
lab3: ;
goto lab1;
lab2: ;
cursor = c2;
// (, line 47
if (out_grouping(g_v, 97, 259, false) != 0)
{
goto lab0;
}
// or, line 47
{
int c6 = cursor;
// (, line 47
if (out_grouping(g_v, 97, 259, false) != 0)
{
goto lab6;
}
{
/* gopast */
int ret = out_grouping(g_v, 97, 259, true);
if (ret < 0)
{
goto lab6;
}
cursor += ret;
}
goto lab5;
lab6: ;
cursor = c6;
// (, line 47
if (in_grouping(g_v, 97, 259, false) != 0)
{
goto lab0;
}
// next, line 47
if (cursor >= limit)
{
goto lab0;
}
cursor++;
}
lab5: ;
}
lab1: ;
// setmark pV, line 48
I_pV = cursor;
lab0: ;
cursor = c1;
}
// do, line 50
{
int c8 = cursor;
// (, line 50
{
/* gopast */
int ret = out_grouping(g_v, 97, 259, true);
if (ret < 0)
{
goto lab7;
}
cursor += ret;
}
{
/* gopast */
int ret = in_grouping(g_v, 97, 259, true);
if (ret < 0)
{
goto lab7;
}
cursor += ret;
}
// setmark p1, line 51
I_p1 = cursor;
{
/* gopast */
int ret = out_grouping(g_v, 97, 259, true);
if (ret < 0)
{
goto lab7;
}
cursor += ret;
}
{
/* gopast */
int ret = in_grouping(g_v, 97, 259, true);
if (ret < 0)
{
goto lab7;
}
cursor += ret;
}
// setmark p2, line 52
I_p2 = cursor;
lab7: ;
cursor = c8;
}
return 1;
}
private int r_postlude()
{
int among_var;
// repeat, line 56
while (true)
{
int c1 = cursor;
// (, line 56
// [, line 58
bra = cursor;
// substring, line 58
among_var = find_among(a_0);
if (among_var == 0)
{
goto lab0;
}
// ], line 58
ket = cursor;
switch (among_var)
{
case 0:
{
goto lab0;
}
case 1:
// (, line 59
// <-, line 59
slice_from("i");
break;
case 2:
// (, line 60
// <-, line 60
slice_from("u");
break;
case 3:
// (, line 61
// next, line 61
if (cursor >= limit)
{
goto lab0;
}
cursor++;
break;
}
continue;
lab0: ;
cursor = c1;
break;
}
return 1;
}
private int r_RV()
{
if (!(I_pV <= cursor))
{
return 0;
}
return 1;
}
private int r_R1()
{
if (!(I_p1 <= cursor))
{
return 0;
}
return 1;
}
private int r_R2()
{
if (!(I_p2 <= cursor))
{
return 0;
}
return 1;
}
private int r_step_0()
{
int among_var;
// (, line 72
// [, line 73
ket = cursor;
// substring, line 73
among_var = find_among_b(a_1);
if (among_var == 0)
{
return 0;
}
// ], line 73
bra = cursor;
{
// call R1, line 73
int ret = r_R1();
if (ret == 0)
return 0;
else if (ret < 0)
return ret;
}
switch (among_var)
{
case 0:
{
return 0;
}
case 1:
// (, line 75
// delete, line 75
slice_del();
break;
case 2:
// (, line 77
// <-, line 77
slice_from("a");
break;
case 3:
// (, line 79
// <-, line 79
slice_from("e");
break;
case 4:
// (, line 81
// <-, line 81
slice_from("i");
break;
case 5:
// (, line 83
// not, line 83
{
int c1 = limit - cursor;
// literal, line 83
if (!(eq_s_b("ab")))
{
goto lab0;
}
return 0;
lab0: ;
cursor = limit - c1;
}
// <-, line 83
slice_from("i");
break;
case 6:
// (, line 85
// <-, line 85
slice_from("at");
break;
case 7:
// (, line 87
// <-, line 87
slice_from("a\u0163i");
break;
}
return 1;
}
private int r_combo_suffix()
{
int among_var;
// test, line 91
{
int c1 = limit - cursor;
// (, line 91
// [, line 92
ket = cursor;
// substring, line 92
among_var = find_among_b(a_2);
if (among_var == 0)
{
return 0;
}
// ], line 92
bra = cursor;
{
// call R1, line 92
int ret = r_R1();
if (ret == 0)
return 0;
else if (ret < 0)
return ret;
}
// (, line 92
switch (among_var)
{
case 0:
{
return 0;
}
case 1:
// (, line 100
// <-, line 101
slice_from("abil");
break;
case 2:
// (, line 103
// <-, line 104
slice_from("ibil");
break;
case 3:
// (, line 106
// <-, line 107
slice_from("iv");
break;
case 4:
// (, line 112
// <-, line 113
slice_from("ic");
break;
case 5:
// (, line 117
// <-, line 118
slice_from("at");
break;
case 6:
// (, line 121
// <-, line 122
slice_from("it");
break;
}
// set standard_suffix_removed, line 125
B_standard_suffix_removed = true;
cursor = limit - c1;
}
return 1;
}
private int r_standard_suffix()
{
int among_var;
// (, line 129
// unset standard_suffix_removed, line 130
B_standard_suffix_removed = false;
// repeat, line 131
while (true)
{
int c1 = limit - cursor;
{
// call combo_suffix, line 131
int ret = r_combo_suffix();
if (ret == 0)
goto lab0;
else if (ret < 0)
return ret;
}
continue;
lab0: ;
cursor = limit - c1;
break;
}
// [, line 132
ket = cursor;
// substring, line 132
among_var = find_among_b(a_3);
if (among_var == 0)
{
return 0;
}
// ], line 132
bra = cursor;
{
// call R2, line 132
int ret = r_R2();
if (ret == 0)
return 0;
else if (ret < 0)
return ret;
}
// (, line 132
switch (among_var)
{
case 0:
{
return 0;
}
case 1:
// (, line 148
// delete, line 149
slice_del();
break;
case 2:
// (, line 151
// literal, line 152
if (!(eq_s_b("\u0163")))
{
return 0;
}
// ], line 152
bra = cursor;
// <-, line 152
slice_from("t");
break;
case 3:
// (, line 155
// <-, line 156
slice_from("ist");
break;
}
// set standard_suffix_removed, line 160
B_standard_suffix_removed = true;
return 1;
}
private int r_verb_suffix()
{
int among_var;
// setlimit, line 164
int c1 = limit - cursor;
// tomark, line 164
if (cursor < I_pV)
{
return 0;
}
cursor = I_pV;
int c2 = limit_backward;
limit_backward = cursor;
cursor = limit - c1;
// (, line 164
// [, line 165
ket = cursor;
// substring, line 165
among_var = find_among_b(a_4);
if (among_var == 0)
{
{
limit_backward = c2;
return 0;
}
}
// ], line 165
bra = cursor;
switch (among_var)
{
case 0:
{
{
limit_backward = c2;
return 0;
}
}
case 1:
// (, line 200
// or, line 200
{
int c3 = limit - cursor;
if (out_grouping_b(g_v, 97, 259, false) != 0)
{
goto lab1;
}
goto lab0;
lab1: ;
cursor = limit - c3;
// literal, line 200
if (!(eq_s_b("u")))
{
{
limit_backward = c2;
return 0;
}
}
}
lab0: ;
// delete, line 200
slice_del();
break;
case 2:
// (, line 214
// delete, line 214
slice_del();
break;
}
limit_backward = c2;
return 1;
}
private int r_vowel_suffix()
{
int among_var;
// (, line 218
// [, line 219
ket = cursor;
// substring, line 219
among_var = find_among_b(a_5);
if (among_var == 0)
{
return 0;
}
// ], line 219
bra = cursor;
{
// call RV, line 219
int ret = r_RV();
if (ret == 0)
return 0;
else if (ret < 0)
return ret;
}
switch (among_var)
{
case 0:
{
return 0;
}
case 1:
// (, line 220
// delete, line 220
slice_del();
break;
}
return 1;
}
private int stem()
{
// (, line 225
// do, line 226
{
int c1 = cursor;
{
// call prelude, line 226
int ret = r_prelude();
if (ret == 0)
goto lab0;
else if (ret < 0)
return ret;
}
lab0: ;
cursor = c1;
}
// do, line 227
{
int c2 = cursor;
{
// call mark_regions, line 227
int ret = r_mark_regions();
if (ret == 0)
goto lab1;
else if (ret < 0)
return ret;
}
lab1: ;
cursor = c2;
}
// backwards, line 228
limit_backward = cursor; cursor = limit;
// (, line 228
// do, line 229
{
int c3 = limit - cursor;
{
// call step_0, line 229
int ret = r_step_0();
if (ret == 0)
goto lab2;
else if (ret < 0)
return ret;
}
lab2: ;
cursor = limit - c3;
}
// do, line 230
{
int c4 = limit - cursor;
{
// call standard_suffix, line 230