• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tcl84/tcl/generic/

Lines Matching +defs:left +defs:bracket

52 static VOID bracket _ANSI_ARGS_((struct vars *, struct state *, struct state *));
584 * tied together with '|'. They appear in the tree as the left children
597 struct state *left; /* scaffolding for branch */
618 left = newstate(v->nfa);
621 EMPTYARC(init, left);
624 branch->left = parsebranch(v, stopper, type, left, right, 0);
626 branch->flags |= UP(branch->flags | branch->left->flags);
641 t = branch->left;
642 branch->left = NULL;
646 freesubre(v, branches->left);
647 branches->left = NULL;
665 parsebranch(v, stopper, type, left, right, partial)
669 struct state *left; /* leftmost state */
673 struct state *lp; /* left end of current construct */
677 lp = left;
679 t = subre(v, '=', 0, left, right); /* op '=' is tentative */
696 assert(lp == left);
697 EMPTYARC(left, right);
716 struct state *lp; /* left state to hang it on */
854 bracket(v, lp, rp);
894 t->left = atom;
1025 t->left = atom;
1026 atomp = &t->left;
1030 assert(top->op == '=' && top->left == NULL && top->right == NULL);
1031 top->left = subre(v, '=', top->flags, top->begin, lp);
1055 t->left = atom;
1058 t->right->left = subre(v, '=', 0, s2, atom->end);
1061 atomp = &t->left;
1086 t->left = subre(v, '=', PREF(f), s, atom->begin);
1167 * left and right end states, however!) This used to be important for the
1255 - bracket - handle non-complemented bracket expression
1256 * Also called from cbracket for complemented bracket expressions.
1257 ^ static VOID bracket(struct vars *, struct state *, struct state *);
1260 bracket(v, lp, rp)
1274 - cbracket - handle complemented bracket expression
1275 * We do it by calling bracket() with dummy endpoints, and then complementing
1286 struct state *left = newstate(v->nfa);
1290 struct arc *ba; /* arc from left, from bracket() */
1297 bracket(v, left, right);
1299 newarc(v->nfa, PLAIN, v->nlcolor, left, right);
1305 colorcomplement(v->nfa, v->cm, PLAIN, left, lp, rp);
1308 dropstate(v->nfa, left);
1319 ba = findarc(left, PLAIN, co);
1353 delsub(v->nfa, left, right);
1354 assert(left->nouts == 0);
1355 freestate(v->nfa, left);
1361 - brackpart - handle one item (or range) within a bracket expression
1471 * to look past the final bracket of the [. etc.
1722 struct state *left;
1730 left = newstate(v->nfa);
1737 bracket(v, left, right);
1741 v->wordchrs = left;
1761 v->treefree = ret->left;
1779 ret->left = NULL;
1800 if (sr->left != NULL)
1801 freesubre(v, sr->left);
1825 sr->left = v->treefree;
1865 if (t->left != NULL)
1866 i = numst(t->left, i);
1883 if (t->left != NULL)
1884 markst(t->left);
1921 if (t->left != NULL)
1922 (DISCARD)nfatree(v, t->left, f);
2140 if (t->left != NULL)
2141 fprintf(f, " L:%s", stid(t->left, idbuf, sizeof(idbuf)));
2149 if (t->left != NULL)
2150 stdump(t->left, f, nfapresent);