summaryrefslogtreecommitdiff
path: root/preproc.h
diff options
context:
space:
mode:
Diffstat (limited to 'preproc.h')
-rw-r--r--preproc.h30
1 files changed, 1 insertions, 29 deletions
diff --git a/preproc.h b/preproc.h
index 1ba76cf..7907f9d 100644
--- a/preproc.h
+++ b/preproc.h
@@ -93,34 +93,6 @@ TokenPtrVec lex(char* input, PreprocArena* arena);
// Parsing
typedef enum {
- STDIN_REDIR,
- STDOUT_REDIR_TRUNC,
- STDOUT_REDIR_APPEND,
-} RedirKind;
-
-
-typedef struct {
- RedirKind kind;
-
- union {
- Word std_redir_filename;
- } as;
-} Redirect;
-
-
-DECLARE_VEC(Redirect, RedirectVec)
-
-
-
-
-typedef struct {
- TokenVec args;
- RedirectVec redirects;
- // TODO: prefix variable settings
-} Command;
-
-
-typedef enum {
CONN_PIPE,
CONN_EOL,
// TODO: add the |& thingy
@@ -129,7 +101,7 @@ typedef enum {
DECLARE_MAYBE(Connector, MaybeConnector)
typedef struct {
- Command cmd;
+ TokenVec cmd_toks;
Connector conn;
} PipelineElement;