MiniDevil
As beautiful as a shell
Central type definitions for mandatory part. More...
This graph shows which files directly or indirectly include this file:Central type definitions for mandatory part.
Defines tokens, AST nodes, environment list & shell state.
Definition in file structs.h.
Enumerations | |
| enum | t_token_type { TOKEN_WORD , TOKEN_PIPE , TOKEN_REDIR_IN , TOKEN_REDIR_OUT , TOKEN_APPEND , TOKEN_HEREDOC , TOKEN_AND , TOKEN_OR , TOKEN_LPAREN , TOKEN_RPAREN } |
| Token types produced by Lexer. More... | |
| enum | t_quote_type { QUOTE_NONE , QUOTE_SINGLE , QUOTE_DOUBLE } |
| Quote context of a token. More... | |
| enum | t_node_type { NODE_COMMAND , NODE_PIPE , NODE_REDIR_IN , NODE_REDIR_OUT , NODE_REDIR_APPEND , NODE_REDIR_HEREDOC , NODE_AND , NODE_OR , NODE_SUBSHELL } |
| AST node types. More... | |
| enum | t_syntax_error { ERR_NONE = 0 , ERR_EMPTY_INPUT , ERR_PIPE_START , ERR_PIPE_END , ERR_PIPE_DOUBLE , ERR_PIPE_NO_CMD , ERR_REDIR_NO_FILE , ERR_REDIR_AFTER_PIPE , ERR_AND_UNEXPECTED , ERR_OR_UNEXPECTED , ERR_PAREN_OPEN , ERR_PAREN_CLOSE , ERR_PAREN_EMPTY , ERR_UNEXPECTED_LPAREN } |
| Syntax error codes (for parser) More... | |
| enum t_token_type |
| enum t_quote_type |
| enum t_node_type |
| enum t_syntax_error |