ReactOS 0.4.16-dev-455-g37b0646
|
#include "precomp.h"
Go to the source code of this file.
Macros | |
#define | MSCMD_ECHO_COMMAND_COMPAT |
#define | MSCMD_PARSER_BUGS |
#define | MSCMD_REDIR_PARSE_BUGS |
#define | C_OP_LOWEST C_MULTI |
#define | C_OP_HIGHEST C_PIPE |
#define | IF_MAX_UNARY IF_DEFINED |
#define | IF_MAX_COMPARISON IF_GEQ |
#define | DUMP(Command, Pad) |
#define | CHAR(Char) |
#define | STRING(String) |
#define | PRINTF(Format, ...) |
#define | RECURSE(Subcommand) |
Typedefs | |
typedef enum _TOK_TYPE | TOK_TYPE |
Enumerations | |
enum | _TOK_TYPE { TOK_END , TOK_NORMAL , TOK_OPERATOR , TOK_REDIRECTION , TOK_BEGIN_BLOCK , TOK_END_BLOCK } |
Variables | |
BOOLEAN | fDumpTokens = FALSE |
BOOLEAN | fDumpParse = FALSE |
static const TCHAR | OpString [][3] = { _T("&"), _T("||"), _T("&&"), _T("|") } |
static const TCHAR | RedirString [][3] = { _T("<"), _T(">"), _T(">>") } |
static const TCHAR *const | IfOperatorString [] |
static TCHAR | TempBuf [CMDLINE_LENGTH] |
BOOL | bParseError |
static BOOL | bLineContinuations |
TCHAR | ParseLine [CMDLINE_LENGTH] |
static PTCHAR | ParsePos |
static PTCHAR | OldParsePos |
BOOL | bIgnoreParserComments = TRUE |
BOOL | bHandleContinuations = TRUE |
static TCHAR | CurrentToken [CMDLINE_LENGTH] |
static TOK_TYPE | CurrentTokenType = TOK_END |
static INT | InsideBlock = 0 |
#define IF_MAX_UNARY IF_DEFINED |
#define RECURSE | ( | Subcommand | ) |
Enumerator | |
---|---|
TOK_END | |
TOK_NORMAL | |
TOK_OPERATOR | |
TOK_REDIRECTION | |
TOK_BEGIN_BLOCK | |
TOK_END_BLOCK |
Definition at line 77 of file parser.c.
|
static |
Definition at line 459 of file parser.c.
Referenced by ParseBlock(), ParseCommandBinaryOp(), ParseCommandPart(), ParseFor(), ParseIf(), ParsePrimary(), and ParseRem().
VOID DumpCommand | ( | IN PARSED_COMMAND * | Cmd, |
IN ULONG | SpacePad | ||
) |
Definition at line 1533 of file parser.c.
Referenced by DumpCommand(), and ParseCommand().
|
static |
Definition at line 1514 of file parser.c.
Referenced by DumpCommand().
VOID EchoCommand | ( | IN PARSED_COMMAND * | Cmd | ) |
Definition at line 1808 of file parser.c.
Referenced by EchoCommand(), and ExecuteCommandWithEcho().
VOID FreeCommand | ( | IN OUT PARSED_COMMAND * | Cmd | ) |
Definition at line 527 of file parser.c.
Referenced by Batch(), cmd_call(), FreeCommand(), ParseBlock(), ParseCommand(), ParseCommandBinaryOp(), ParseCommandLine(), ParseFor(), ParseIf(), and ProcessInput().
Definition at line 173 of file parser.c.
Referenced by ParseCommand().
|
static |
Definition at line 649 of file parser.c.
Referenced by ParsePrimary().
Definition at line 187 of file parser.c.
Referenced by ParseTokenEx().
PARSED_COMMAND * ParseCommand | ( | IN PCTSTR | Line | ) |
Definition at line 1461 of file parser.c.
Referenced by Batch(), cmd_call(), ParseCommandLine(), and ProcessInput().
|
static |
bc &&
Definition at line 1295 of file parser.c.
Referenced by ParseCommandBinaryOp(), and ParseCommandOp().
|
static |
Definition at line 1447 of file parser.c.
Referenced by ParseBlock(), ParseCommand(), ParseCommandBinaryOp(), ParseFor(), ParseIf(), and ParsePrimary().
|
static |
Definition at line 1051 of file parser.c.
Referenced by ParsePrimary().
Definition at line 235 of file parser.c.
Referenced by ParseBlock(), ParseCommand(), ParseCommandBinaryOp(), ParseCommandPart(), ParseFor(), ParseIf(), ParsePrimary(), ParseRedirection(), and ParseRem().
Definition at line 227 of file parser.c.
Referenced by cmd_for(), cmd_if(), GetBatchVar(), ParseCommandPart(), and ParseError().
|
static |
Definition at line 875 of file parser.c.
Referenced by ParseCommandPart().
|
static |
Definition at line 780 of file parser.c.
Referenced by ParseCommandPart().
|
static |
Definition at line 1209 of file parser.c.
Referenced by ParseCommandBinaryOp().
|
static |
Definition at line 551 of file parser.c.
Referenced by ParseBlock(), ParseCommandPart(), and ParsePrimary().
|
static |
Definition at line 1003 of file parser.c.
Referenced by ParseCommandPart().
Definition at line 450 of file parser.c.
Referenced by ParseBlock(), ParseCommandBinaryOp(), ParseCommandPart(), ParseFor(), ParseIf(), ParsePrimary(), and ParseRedirection().
|
static |
Definition at line 241 of file parser.c.
Referenced by ParseCommandOp(), ParseRem(), and ParseToken().
Definition at line 107 of file parser.c.
Referenced by InitParser(), and ParseChar().
Definition at line 1965 of file parser.c.
Referenced by ExecuteAsync().
Definition at line 160 of file parser.c.
Referenced by ParseBlock(), ParseCommandPart(), ParsePrimary(), and ParseRem().
Definition at line 97 of file parser.c.
Referenced by cmd_call(), ParseCommandOp(), ParseToken(), and ParseTokenEx().
Definition at line 96 of file parser.c.
Referenced by cmd_call(), and ParseCommandBinaryOp().
|
static |
Definition at line 91 of file parser.c.
Referenced by ParseChar(), and ParseCommand().
BOOL bParseError |
Definition at line 90 of file parser.c.
Referenced by Batch(), cmd_call(), ParseBlock(), ParseChar(), ParseCommand(), ParseCommandBinaryOp(), ParseCommandLine(), ParseCommandPart(), ParseErrorEx(), ParsePrimary(), ResetParser(), and SubstituteVar().
|
static |
Definition at line 99 of file parser.c.
Referenced by InitParser(), ParseBlock(), ParseCommand(), ParseCommandBinaryOp(), ParseCommandPart(), ParseError(), ParseFor(), ParseIf(), ParsePrimary(), ParseRedirection(), ParseRem(), and ParseTokenEx().
Definition at line 100 of file parser.c.
Referenced by InitParser(), ParseBlock(), ParseCommand(), ParseCommandBinaryOp(), ParseCommandPart(), ParseError(), ParseFor(), ParseIf(), ParsePrimary(), ParseRedirection(), and ParseTokenEx().
Definition at line 36 of file parser.c.
Referenced by ParseCommand().
Definition at line 35 of file parser.c.
Referenced by ParseTokenEx(), and UnParseToken().
Definition at line 44 of file parser.c.
Referenced by DumpCommand(), EchoCommand(), ParseIf(), and UnparseCommand().
|
static |
Definition at line 105 of file parser.c.
Referenced by InitParser(), ParseBlock(), ParseCommandBinaryOp(), ParseFor(), and ParseTokenEx().
|
static |
Definition at line 94 of file parser.c.
Referenced by ParseTokenEx(), ResetParser(), and UnParseToken().
Definition at line 40 of file parser.c.
Referenced by DumpCommand(), EchoCommand(), ParseCommandBinaryOp(), and UnparseCommand().
TCHAR ParseLine[CMDLINE_LENGTH] |
Definition at line 92 of file parser.c.
Referenced by Batch(), InitParser(), ParseChar(), and ParseCommand().
|
static |
Definition at line 93 of file parser.c.
Referenced by ParseChar(), ParseTokenEx(), ResetParser(), and UnParseToken().
Definition at line 42 of file parser.c.
Referenced by DumpRedir(), EchoCommand(), and UnparseCommand().
|
static |
Definition at line 88 of file parser.c.
Referenced by EchoCommand(), ParseCommandPart(), ParseFor(), ParseRem(), and UnparseCommand().