PostgreSQL Source Code  git master
stem_KOI8_R_russian.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct SN_envrussian_KOI8_R_create_env (void)
 
void russian_KOI8_R_close_env (struct SN_env *z)
 
int russian_KOI8_R_stem (struct SN_env *z)
 

Function Documentation

◆ russian_KOI8_R_close_env()

void russian_KOI8_R_close_env ( struct SN_env z)

Definition at line 699 of file stem_KOI8_R_russian.c.

References SN_close_env().

699 { SN_close_env(z, 0); }
void SN_close_env(struct SN_env *z, int S_size)
Definition: api.c:40

◆ russian_KOI8_R_create_env()

struct SN_env* russian_KOI8_R_create_env ( void  )

Definition at line 697 of file stem_KOI8_R_russian.c.

References SN_create_env().

697 { return SN_create_env(0, 2, 0); }
struct SN_env * SN_create_env(int S_size, int I_size, int B_size)
Definition: api.c:3

◆ russian_KOI8_R_stem()

int russian_KOI8_R_stem ( struct SN_env z)

Definition at line 604 of file stem_KOI8_R_russian.c.

References SN_env::bra, SN_env::c, eq_s_b(), SN_env::I, SN_env::ket, SN_env::l, SN_env::lb, r_adjectival(), r_derivational(), r_mark_regions(), r_noun(), r_perfective_gerund(), r_reflexive(), r_tidy_up(), r_verb(), s_9, and slice_del().

604  {
605  { int c1 = z->c; /* do, line 203 */
606  { int ret = r_mark_regions(z);
607  if (ret == 0) goto lab0; /* call mark_regions, line 203 */
608  if (ret < 0) return ret;
609  }
610  lab0:
611  z->c = c1;
612  }
613  z->lb = z->c; z->c = z->l; /* backwards, line 204 */
614 
615  { int mlimit; /* setlimit, line 204 */
616  int m2 = z->l - z->c; (void)m2;
617  if (z->c < z->I[0]) return 0;
618  z->c = z->I[0]; /* tomark, line 204 */
619  mlimit = z->lb; z->lb = z->c;
620  z->c = z->l - m2;
621  { int m3 = z->l - z->c; (void)m3; /* do, line 205 */
622  { int m4 = z->l - z->c; (void)m4; /* or, line 206 */
623  { int ret = r_perfective_gerund(z);
624  if (ret == 0) goto lab3; /* call perfective_gerund, line 206 */
625  if (ret < 0) return ret;
626  }
627  goto lab2;
628  lab3:
629  z->c = z->l - m4;
630  { int m_keep = z->l - z->c;/* (void) m_keep;*/ /* try, line 207 */
631  { int ret = r_reflexive(z);
632  if (ret == 0) { z->c = z->l - m_keep; goto lab4; } /* call reflexive, line 207 */
633  if (ret < 0) return ret;
634  }
635  lab4:
636  ;
637  }
638  { int m5 = z->l - z->c; (void)m5; /* or, line 208 */
639  { int ret = r_adjectival(z);
640  if (ret == 0) goto lab6; /* call adjectival, line 208 */
641  if (ret < 0) return ret;
642  }
643  goto lab5;
644  lab6:
645  z->c = z->l - m5;
646  { int ret = r_verb(z);
647  if (ret == 0) goto lab7; /* call verb, line 208 */
648  if (ret < 0) return ret;
649  }
650  goto lab5;
651  lab7:
652  z->c = z->l - m5;
653  { int ret = r_noun(z);
654  if (ret == 0) goto lab1; /* call noun, line 208 */
655  if (ret < 0) return ret;
656  }
657  }
658  lab5:
659  ;
660  }
661  lab2:
662  lab1:
663  z->c = z->l - m3;
664  }
665  { int m_keep = z->l - z->c;/* (void) m_keep;*/ /* try, line 211 */
666  z->ket = z->c; /* [, line 211 */
667  if (!(eq_s_b(z, 1, s_9))) { z->c = z->l - m_keep; goto lab8; }
668  z->bra = z->c; /* ], line 211 */
669  { int ret = slice_del(z); /* delete, line 211 */
670  if (ret < 0) return ret;
671  }
672  lab8:
673  ;
674  }
675  { int m6 = z->l - z->c; (void)m6; /* do, line 214 */
676  { int ret = r_derivational(z);
677  if (ret == 0) goto lab9; /* call derivational, line 214 */
678  if (ret < 0) return ret;
679  }
680  lab9:
681  z->c = z->l - m6;
682  }
683  { int m7 = z->l - z->c; (void)m7; /* do, line 215 */
684  { int ret = r_tidy_up(z);
685  if (ret == 0) goto lab10; /* call tidy_up, line 215 */
686  if (ret < 0) return ret;
687  }
688  lab10:
689  z->c = z->l - m7;
690  }
691  z->lb = mlimit;
692  }
693  z->c = z->lb;
694  return 1;
695 }
int eq_s_b(struct SN_env *z, int s_size, const symbol *s)
Definition: utilities.c:194
int * I
Definition: api.h:18
int ket
Definition: api.h:16
int slice_del(struct SN_env *z)
Definition: utilities.c:401
int bra
Definition: api.h:16
int c
Definition: api.h:16
static int r_mark_regions(struct SN_env *z)
static int r_reflexive(struct SN_env *z)
int lb
Definition: api.h:16
static const symbol s_9[]
static int r_verb(struct SN_env *z)
static int r_adjectival(struct SN_env *z)
static int r_derivational(struct SN_env *z)
static int r_tidy_up(struct SN_env *z)
static int r_noun(struct SN_env *z)
static int r_perfective_gerund(struct SN_env *z)
int l
Definition: api.h:16