Lines Matching refs:parse
53 * parse structure, passed up and down to avoid global variables and
56 struct parse {
70 static void p_ere(struct parse *, int);
71 static void p_ere_exp(struct parse *);
72 static void p_str(struct parse *);
73 static void p_bre(struct parse *, int, int);
74 static int p_simp_re(struct parse *, int);
75 static int p_count(struct parse *);
76 static void p_bracket(struct parse *);
77 static void p_b_term(struct parse *, cset *);
78 static void p_b_cclass(struct parse *, cset *);
79 static void p_b_eclass(struct parse *, cset *);
80 static char p_b_symbol(struct parse *);
81 static char p_b_coll_elem(struct parse *, int);
83 static void bothcases(struct parse *, int);
84 static void ordinary(struct parse *, int);
85 static void nonnewline(struct parse *);
86 static void repeat(struct parse *, sopno, int, int);
87 static int seterr(struct parse *, int);
88 static cset *allocset(struct parse *);
89 static void freeset(struct parse *, cset *);
90 static int freezeset(struct parse *, cset *);
91 static int firstch(struct parse *, cset *);
92 static int nch(struct parse *, cset *);
93 static void mcadd(struct parse *, cset *, const char *);
94 static void mcinvert(struct parse *, cset *);
95 static void mccase(struct parse *, cset *);
98 static void categorize(struct parse *, struct re_guts *);
99 static sopno dupl(struct parse *, sopno, sopno);
100 static void doemit(struct parse *, sop, size_t);
101 static void doinsert(struct parse *, sop, size_t, sopno);
102 static void dofwd(struct parse *, sopno, sop);
103 static void enlarge(struct parse *, sopno);
104 static void stripsnug(struct parse *, struct re_guts *);
105 static void findmust(struct parse *, struct re_guts *);
106 static sopno pluscount(struct parse *, struct re_guts *);
111 * macros for use with parse structure
112 * BEWARE: these know that the parse structure is named `p' !!!
159 struct parse pa;
161 struct parse *p = &pa;
257 p_ere(struct parse *p, int stop) /* character this ERE should end at */
297 - p_ere_exp - parse one subERE, an atom possibly followed by a repetition op
300 p_ere_exp(struct parse *p)
387 * that marks a back-reference to the parse structure.
475 p_str(struct parse *p)
493 p_bre(struct parse *p,
521 - p_simp_re - parse a simple RE, an atom possibly followed by a repetition
524 p_simp_re(struct parse *p,
637 - p_count - parse a repetition count
640 p_count(struct parse *p)
655 - p_bracket - parse a bracketed character list
661 p_bracket(struct parse *p)
737 - p_b_term - parse one term of a bracketed character list
740 p_b_term(struct parse *p, cset *cs)
800 - p_b_cclass - parse a character-class name and deal with it
803 p_b_cclass(struct parse *p, cset *cs)
831 - p_b_eclass - parse an equivalence-class name and deal with it
836 p_b_eclass(struct parse *p, cset *cs)
845 - p_b_symbol - parse a character or [..]ed multicharacter collating symbol
848 p_b_symbol(struct parse *p)
863 - p_b_coll_elem - parse a collating-element name and look it up
866 p_b_coll_elem(struct parse *p,
911 bothcases(struct parse *p, int ch)
934 ordinary(struct parse *p, int ch)
953 nonnewline(struct parse *p)
975 repeat(struct parse *p,
1045 seterr(struct parse *p, int e)
1058 allocset(struct parse *p)
1117 freeset(struct parse *p, cset *cs)
1139 freezeset(struct parse *p, cset *cs)
1170 firstch(struct parse *p, cset *cs)
1186 nch(struct parse *p, cset *cs)
1202 mcadd( struct parse *p, cset *cs, const char *cp)
1229 mcinvert(struct parse *p, cset *cs)
1242 mccase(struct parse *p, cset *cs)
1286 categorize(struct parse *p, struct re_guts *g)
1311 dupl(struct parse *p,
1337 doemit(struct parse *p, sop op, size_t opnd)
1359 doinsert(struct parse *p, sop op, size_t opnd, sopno pos)
1394 dofwd(struct parse *p, sopno pos, sop value)
1408 enlarge(struct parse *p, sopno size)
1428 stripsnug(struct parse *p, struct re_guts *g)
1448 findmust(struct parse *p, struct re_guts *g)
1526 pluscount(struct parse *p, struct re_guts *g)