diff options
| author | Chet Ramey <chet.ramey@case.edu> | 2011-11-21 20:51:19 -0500 |
|---|---|---|
| committer | Chet Ramey <chet.ramey@case.edu> | 2011-11-21 20:51:19 -0500 |
| commit | 0001803f0b9523c94fa2ede48eaecb047fef4524 (patch) | |
| tree | f334332811e033ff966d94f6268f0629a94304b3 /parser.h | |
| parent | 89a92869e56aba4e4cab2d639c00a86f0545c862 (diff) | |
| download | android_external_bash-0001803f0b9523c94fa2ede48eaecb047fef4524.tar.gz android_external_bash-0001803f0b9523c94fa2ede48eaecb047fef4524.tar.bz2 android_external_bash-0001803f0b9523c94fa2ede48eaecb047fef4524.zip | |
Bash-4.1 distribution source
Diffstat (limited to 'parser.h')
| -rw-r--r-- | parser.h | 40 |
1 files changed, 21 insertions, 19 deletions
@@ -26,25 +26,27 @@ # include "input.h" /* Possible states for the parser that require it to do special things. */ -#define PST_CASEPAT 0x00001 /* in a case pattern list */ -#define PST_ALEXPNEXT 0x00002 /* expand next word for aliases */ -#define PST_ALLOWOPNBRC 0x00004 /* allow open brace for function def */ -#define PST_NEEDCLOSBRC 0x00008 /* need close brace */ -#define PST_DBLPAREN 0x00010 /* double-paren parsing */ -#define PST_SUBSHELL 0x00020 /* ( ... ) subshell */ -#define PST_CMDSUBST 0x00040 /* $( ... ) command substitution */ -#define PST_CASESTMT 0x00080 /* parsing a case statement */ -#define PST_CONDCMD 0x00100 /* parsing a [[...]] command */ -#define PST_CONDEXPR 0x00200 /* parsing the guts of [[...]] */ -#define PST_ARITHFOR 0x00400 /* parsing an arithmetic for command */ -#define PST_ALEXPAND 0x00800 /* OK to expand aliases - unused */ -#define PST_CMDTOKEN 0x01000 /* command token OK - unused */ -#define PST_COMPASSIGN 0x02000 /* parsing x=(...) compound assignment */ -#define PST_ASSIGNOK 0x04000 /* assignment statement ok in this context */ -#define PST_EOFTOKEN 0x08000 /* yylex checks against shell_eof_token */ -#define PST_REGEXP 0x10000 /* parsing an ERE/BRE as a single word */ -#define PST_HEREDOC 0x20000 /* reading body of here-document */ -#define PST_REPARSE 0x40000 /* re-parsing in parse_string_to_word_list */ +#define PST_CASEPAT 0x000001 /* in a case pattern list */ +#define PST_ALEXPNEXT 0x000002 /* expand next word for aliases */ +#define PST_ALLOWOPNBRC 0x000004 /* allow open brace for function def */ +#define PST_NEEDCLOSBRC 0x000008 /* need close brace */ +#define PST_DBLPAREN 0x000010 /* double-paren parsing */ +#define PST_SUBSHELL 0x000020 /* ( ... ) subshell */ +#define PST_CMDSUBST 0x000040 /* $( ... ) command substitution */ +#define PST_CASESTMT 0x000080 /* parsing a case statement */ +#define PST_CONDCMD 0x000100 /* parsing a [[...]] command */ +#define PST_CONDEXPR 0x000200 /* parsing the guts of [[...]] */ +#define PST_ARITHFOR 0x000400 /* parsing an arithmetic for command */ +#define PST_ALEXPAND 0x000800 /* OK to expand aliases - unused */ +#define PST_EXTPAT 0x001000 /* parsing an extended shell pattern */ +#define PST_COMPASSIGN 0x002000 /* parsing x=(...) compound assignment */ +#define PST_ASSIGNOK 0x004000 /* assignment statement ok in this context */ +#define PST_EOFTOKEN 0x008000 /* yylex checks against shell_eof_token */ +#define PST_REGEXP 0x010000 /* parsing an ERE/BRE as a single word */ +#define PST_HEREDOC 0x020000 /* reading body of here-document */ +#define PST_REPARSE 0x040000 /* re-parsing in parse_string_to_word_list */ +#define PST_REDIRLIST 0x080000 /* parsing a list of redirctions preceding a simple command name */ + /* Definition of the delimiter stack. Needed by parse.y and bashhist.c. */ struct dstack { |
