Lines Matching full:stack
37 // stack IDs. Each stack ID is unique to each distinct stack. The
46 // 'nodes_'. Each node represents the top of some stack and is
48 // the stack with the top 'popped' and its children are stored in
78 // Returns stack ID given the current stack ID (0 if empty) and
79 // label read. 'Pushes' onto a stack if the label is an open
80 // parenthesis, returning the new stack ID. 'Pops' the stack if the
81 // label is a close parenthesis that matches the top of the stack,
82 // returning the parent stack ID. Returns -1 if label is an
83 // unmatched close parenthesis. Otherwise, returns the current stack
111 // Returns the stack ID obtained by "popping" the label at the top
112 // of the current stack ID.
117 // Returns the paren ID at the top of the stack for 'stack_id'
143 StackId, ChildHash> child_map_; // Child of stack node wrt label