コード例 #1
0
extern int portuguese_stem(struct SN_env * z) {
    {   int c = z->c; /* do, line 200 */
        if (!r_prelude(z)) goto lab0; /* call prelude, line 200 */
    lab0:
        z->c = c;
    }
    {   int c = z->c; /* do, line 201 */
        if (!r_mark_regions(z)) goto lab1; /* call mark_regions, line 201 */
    lab1:
        z->c = c;
    }
    z->lb = z->c; z->c = z->l; /* backwards, line 202 */

    {   int m = z->l - z->c; /* do, line 203 */
        {   int m = z->l - z->c; /* or, line 207 */
            {   int m = z->l - z->c; /* or, line 204 */
                if (!r_standard_suffix(z)) goto lab6; /* call standard_suffix, line 204 */
                goto lab5;
            lab6:
                z->c = z->l - m;
                if (!r_verb_suffix(z)) goto lab4; /* call verb_suffix, line 204 */
            }
        lab5:
            {   int m = z->l - z->c; /* do, line 205 */
                z->ket = z->c; /* [, line 205 */
                if (!(eq_s_b(z, 1, s_16))) goto lab7;
                z->bra = z->c; /* ], line 205 */
                {   int m_test = z->l - z->c; /* test, line 205 */
                    if (!(eq_s_b(z, 1, s_17))) goto lab7;
                    z->c = z->l - m_test;
                }
                if (!r_RV(z)) goto lab7; /* call RV, line 205 */
                slice_del(z); /* delete, line 205 */
            lab7:
                z->c = z->l - m;
            }
            goto lab3;
        lab4:
            z->c = z->l - m;
            if (!r_residual_suffix(z)) goto lab2; /* call residual_suffix, line 207 */
        }
    lab3:
    lab2:
        z->c = z->l - m;
    }
    {   int m = z->l - z->c; /* do, line 209 */
        if (!r_residual_form(z)) goto lab8; /* call residual_form, line 209 */
    lab8:
        z->c = z->l - m;
    }
    z->c = z->lb;
    {   int c = z->c; /* do, line 211 */
        if (!r_postlude(z)) goto lab9; /* call postlude, line 211 */
    lab9:
        z->c = c;
    }
    return 1;
}
コード例 #2
0
extern int spanish_UTF_8_stem(struct SN_env * z) {
    {   int c = z->c; /* do, line 216 */
        {   int ret = r_mark_regions(z);
            if (ret == 0) goto lab0; /* call mark_regions, line 216 */
            if (ret < 0) return ret;
        }
    lab0:
        z->c = c;
    }
    z->lb = z->c; z->c = z->l; /* backwards, line 217 */

    {   int m = z->l - z->c; (void) m; /* do, line 218 */
        {   int ret = r_attached_pronoun(z);
            if (ret == 0) goto lab1; /* call attached_pronoun, line 218 */
            if (ret < 0) return ret;
        }
    lab1:
        z->c = z->l - m;
    }
    {   int m = z->l - z->c; (void) m; /* do, line 219 */
        {   int m = z->l - z->c; (void) m; /* or, line 219 */
            {   int ret = r_standard_suffix(z);
                if (ret == 0) goto lab4; /* call standard_suffix, line 219 */
                if (ret < 0) return ret;
            }
            goto lab3;
        lab4:
            z->c = z->l - m;
            {   int ret = r_y_verb_suffix(z);
                if (ret == 0) goto lab5; /* call y_verb_suffix, line 220 */
                if (ret < 0) return ret;
            }
            goto lab3;
        lab5:
            z->c = z->l - m;
            {   int ret = r_verb_suffix(z);
                if (ret == 0) goto lab2; /* call verb_suffix, line 221 */
                if (ret < 0) return ret;
            }
        }
    lab3:
    lab2:
        z->c = z->l - m;
    }
    {   int m = z->l - z->c; (void) m; /* do, line 223 */
        {   int ret = r_residual_suffix(z);
            if (ret == 0) goto lab6; /* call residual_suffix, line 223 */
            if (ret < 0) return ret;
        }
    lab6:
        z->c = z->l - m;
    }
    z->c = z->lb;
    {   int c = z->c; /* do, line 225 */
        {   int ret = r_postlude(z);
            if (ret == 0) goto lab7; /* call postlude, line 225 */
            if (ret < 0) return ret;
        }
    lab7:
        z->c = c;
    }
    return 1;
}
コード例 #3
0
extern int french_ISO_8859_1_stem(struct SN_env * z) {
    {   int c = z->c; /* do, line 214 */
        {   int ret = r_prelude(z);
            if (ret == 0) goto lab0; /* call prelude, line 214 */
            if (ret < 0) return ret;
        }
    lab0:
        z->c = c;
    }
    {   int c = z->c; /* do, line 215 */
        {   int ret = r_mark_regions(z);
            if (ret == 0) goto lab1; /* call mark_regions, line 215 */
            if (ret < 0) return ret;
        }
    lab1:
        z->c = c;
    }
    z->lb = z->c; z->c = z->l; /* backwards, line 216 */

    {   int m = z->l - z->c; (void) m; /* do, line 218 */
        {   int m = z->l - z->c; (void) m; /* or, line 228 */
            {   int m = z->l - z->c; (void) m; /* and, line 224 */
                {   int m = z->l - z->c; (void) m; /* or, line 220 */
                    {   int ret = r_standard_suffix(z);
                        if (ret == 0) goto lab6; /* call standard_suffix, line 220 */
                        if (ret < 0) return ret;
                    }
                    goto lab5;
                lab6:
                    z->c = z->l - m;
                    {   int ret = r_i_verb_suffix(z);
                        if (ret == 0) goto lab7; /* call i_verb_suffix, line 221 */
                        if (ret < 0) return ret;
                    }
                    goto lab5;
                lab7:
                    z->c = z->l - m;
                    {   int ret = r_verb_suffix(z);
                        if (ret == 0) goto lab4; /* call verb_suffix, line 222 */
                        if (ret < 0) return ret;
                    }
                }
            lab5:
                z->c = z->l - m;
                {   int m = z->l - z->c; (void) m; /* try, line 225 */
                    z->ket = z->c; /* [, line 225 */
                    {   int m = z->l - z->c; (void) m; /* or, line 225 */
                        if (!(eq_s_b(z, 1, s_41))) goto lab10;
                        z->bra = z->c; /* ], line 225 */
                        {   int ret;
                            ret = slice_from_s(z, 1, s_42); /* <-, line 225 */
                            if (ret < 0) return ret;
                        }
                        goto lab9;
                    lab10:
                        z->c = z->l - m;
                        if (!(eq_s_b(z, 1, s_43))) { z->c = z->l - m; goto lab8; }
                        z->bra = z->c; /* ], line 226 */
                        {   int ret;
                            ret = slice_from_s(z, 1, s_44); /* <-, line 226 */
                            if (ret < 0) return ret;
                        }
                    }
                lab9:
                lab8:
                    ;
                }
            }
            goto lab3;
        lab4:
            z->c = z->l - m;
            {   int ret = r_residual_suffix(z);
                if (ret == 0) goto lab2; /* call residual_suffix, line 229 */
                if (ret < 0) return ret;
            }
        }
    lab3:
    lab2:
        z->c = z->l - m;
    }
    {   int m = z->l - z->c; (void) m; /* do, line 234 */
        {   int ret = r_un_double(z);
            if (ret == 0) goto lab11; /* call un_double, line 234 */
            if (ret < 0) return ret;
        }
    lab11:
        z->c = z->l - m;
    }
    {   int m = z->l - z->c; (void) m; /* do, line 235 */
        {   int ret = r_un_accent(z);
            if (ret == 0) goto lab12; /* call un_accent, line 235 */
            if (ret < 0) return ret;
        }
    lab12:
        z->c = z->l - m;
    }
    z->c = z->lb;
    {   int c = z->c; /* do, line 237 */
        {   int ret = r_postlude(z);
            if (ret == 0) goto lab13; /* call postlude, line 237 */
            if (ret < 0) return ret;
        }
    lab13:
        z->c = c;
    }
    return 1;
}