]> git.ipfire.org Git - thirdparty/bash.git/blob - parser.h
Imported from ../bash-2.0.tar.gz.
[thirdparty/bash.git] / parser.h
1 /* parser.h -- Everything you wanted to know about the parser, but were
2 afraid to ask. */
3 #if !defined (_PARSER_H_)
4 # define _PARSER_H_
5
6 # include "command.h"
7 # include "input.h"
8
9 /* Definition of the delimiter stack. Needed by parse.y and bashhist.c. */
10 struct dstack {
11 /* DELIMITERS is a stack of the nested delimiters that we have
12 encountered so far. */
13 char *delimiters;
14
15 /* Offset into the stack of delimiters. */
16 int delimiter_depth;
17
18 /* How many slots are allocated to DELIMITERS. */
19 int delimiter_space;
20 };
21
22 #endif /* _PARSER_H_ */