Lines Matching full:parse
57 * parse structure, passed up and down to avoid global variables and
60 struct parse { struct
81 static void p_ere(struct parse *p, int stop, size_t reclimit); argument
82 static void p_ere_exp(struct parse *p, size_t reclimit);
83 static void p_str(struct parse *p);
84 static void p_bre(struct parse *p, int end1, int end2, size_t reclimit);
85 static int p_simp_re(struct parse *p, int starordinary, size_t reclimit);
86 static int p_count(struct parse *p);
87 static void p_bracket(struct parse *p);
88 static void p_b_term(struct parse *p, cset *cs);
89 static void p_b_cclass(struct parse *p, cset *cs);
90 static void p_b_eclass(struct parse *p, cset *cs);
91 static char p_b_symbol(struct parse *p);
92 static char p_b_coll_elem(struct parse *p, int endc);
94 static void bothcases(struct parse *p, int ch);
95 static void ordinary(struct parse *p, int ch);
96 static void nonnewline(struct parse *p);
97 static void repeat(struct parse *p, sopno start, int from, int to, size_t reclimit);
98 static int seterr(struct parse *p, int e);
99 static cset *allocset(struct parse *p);
100 static void freeset(struct parse *p, cset *cs);
101 static int freezeset(struct parse *p, cset *cs);
102 static int firstch(struct parse *p, cset *cs);
103 static int nch(struct parse *p, cset *cs);
104 static void mcadd(struct parse *p, cset *cs, const char *cp);
110 static void mcinvert(struct parse *p, cset *cs);
111 static void mccase(struct parse *p, cset *cs);
116 static void categorize(struct parse *p, struct re_guts *g);
117 static sopno dupl(struct parse *p, sopno start, sopno finish);
118 static void doemit(struct parse *p, sop op, size_t opnd);
119 static void doinsert(struct parse *p, sop op, size_t opnd, sopno pos);
120 static void dofwd(struct parse *p, sopno pos, sop value);
121 static int enlarge(struct parse *p, sopno size);
122 static void stripsnug(struct parse *p, struct re_guts *g);
123 static void findmust(struct parse *p, struct re_guts *g);
124 static sopno pluscount(struct parse *p, struct re_guts *g);
134 * macros for use with parse structure
135 * BEWARE: these know that the parse structure is named `p' !!!
182 struct parse pa; in regcomp()
184 struct parse *p = &pa; in regcomp()
288 p_ere(struct parse *p, int stop, size_t reclimit) in p_ere()
334 - p_ere_exp - parse one subERE, an atom possibly followed by a repetition op
337 p_ere_exp(struct parse *p, size_t reclimit) in p_ere_exp()
484 p_str(struct parse *p) in p_str()
502 p_bre(struct parse *p, in p_bre()
538 - p_simp_re - parse a simple RE, an atom possibly followed by a repetition
541 p_simp_re(struct parse *p, in p_simp_re()
662 - p_count - parse a repetition count
665 p_count(struct parse *p) in p_count()
680 - p_bracket - parse a bracketed character list
686 p_bracket(struct parse *p) in p_bracket()
761 - p_b_term - parse one term of a bracketed character list
764 p_b_term(struct parse *p, cset *cs) in p_b_term()
824 - p_b_cclass - parse a character-class name and deal with it
827 p_b_cclass(struct parse *p, cset *cs) in p_b_cclass()
855 - p_b_eclass - parse an equivalence-class name and deal with it
860 p_b_eclass(struct parse *p, cset *cs) in p_b_eclass()
869 - p_b_symbol - parse a character or [..]ed multicharacter collating symbol
872 p_b_symbol(struct parse *p) in p_b_symbol()
887 - p_b_coll_elem - parse a collating-element name and look it up
890 p_b_coll_elem(struct parse *p, int endc) in p_b_coll_elem()
935 bothcases(struct parse *p, int ch) in bothcases()
957 ordinary(struct parse *p, int ch) in ordinary()
980 nonnewline(struct parse *p) in nonnewline()
1002 repeat(struct parse *p, in repeat()
1077 seterr(struct parse *p, int e) in seterr()
1090 allocset(struct parse *p) in allocset()
1146 freeset(struct parse *p, cset *cs) in freeset()
1168 freezeset(struct parse *p, cset *cs) in freezeset()
1199 firstch(struct parse *p, cset *cs) in firstch()
1215 nch(struct parse *p, cset *cs) in nch()
1231 mcadd(struct parse *p, cset *cs, const char *cp) in mcadd()
1257 mcinvert(struct parse *p, cset *cs) in mcinvert()
1269 mccase(struct parse *p, cset *cs) in mccase()
1315 categorize(struct parse *p, struct re_guts *g) in categorize()
1342 dupl(struct parse *p, in dupl()
1371 doemit(struct parse *p, sop op, size_t opnd) in doemit()
1395 doinsert(struct parse *p, sop op, size_t opnd, sopno pos) in doinsert()
1435 dofwd(struct parse *p, sopno pos, sop value) in dofwd()
1449 enlarge(struct parse *p, sopno size) in enlarge()
1481 stripsnug(struct parse *p, struct re_guts *g) in stripsnug()
1508 findmust(struct parse *p, struct re_guts *g) in findmust()
1602 pluscount(struct parse *p, struct re_guts *g) in pluscount()