Implemented some ast handlings...
ast lists, and_or, redirection and builtins
This commit is contained in:
parent
1fc54e2bf3
commit
bf992f2db4
10 changed files with 359 additions and 14 deletions
|
|
@ -8,6 +8,8 @@ enum ast_type
|
|||
AST_END,
|
||||
AST_LIST,
|
||||
AST_IF,
|
||||
AST_AND_OR,
|
||||
AST_REDIR,
|
||||
AST_VOID,
|
||||
AST_CMD
|
||||
};
|
||||
|
|
@ -20,7 +22,9 @@ struct ast
|
|||
* Data associated with this AST node. It can be one of the following:
|
||||
* - NULL (AST_END)
|
||||
* - struct ast_if* (AST_IF)
|
||||
* - struct ast_cmd* (AST_CMD)
|
||||
* - struct ast_command* (AST_CMD)
|
||||
* - struct ast_and_or* (AST_AND_OR)
|
||||
* - struct ast_redir* (AST_REDIR)
|
||||
*/
|
||||
void *data;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue