mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 10:12:38 +02:00
commit bash-20080501 snapshot
This commit is contained in:
@@ -25,6 +25,25 @@
|
||||
# include "command.h"
|
||||
# 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 */
|
||||
|
||||
/* Definition of the delimiter stack. Needed by parse.y and bashhist.c. */
|
||||
struct dstack {
|
||||
/* DELIMITERS is a stack of the nested delimiters that we have
|
||||
|
||||
Reference in New Issue
Block a user