diff options
Diffstat (limited to 'smash/parser.h')
| -rw-r--r-- | smash/parser.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/smash/parser.h b/smash/parser.h new file mode 100644 index 0000000..9c23e0f --- /dev/null +++ b/smash/parser.h @@ -0,0 +1,19 @@ +#ifndef PARSER_H +#define PARSER_H + +#include "../lib/sys/sizes.h" + +typedef struct { + const char *head; + const char **args; +} expression_t; + +typedef struct expression_list_t__ { + expression_t expression; + struct expression_list_t__ *next; +} expression_list_t; + +expression_list_t *new_expression_from_line(char *line); +void free_expression(expression_list_t *expression); + +#endif |