diff options
author | 2003-03-24 11:26:02 -0700 | |
---|---|---|
committer | 2005-04-07 20:59:40 -0700 | |
commit | dd70c1f2ceb662e396256e11b9edd44cc7f7724c (patch) | |
tree | c9bed7577d1b6da535589f096b94d0530f9e33ac /parse.h | |
parent | Uhuh. Fix stupid thinko in insertion of macro expansion. (diff) | |
download | sparse-dd70c1f2ceb662e396256e11b9edd44cc7f7724c.tar.gz sparse-dd70c1f2ceb662e396256e11b9edd44cc7f7724c.tar.bz2 sparse-dd70c1f2ceb662e396256e11b9edd44cc7f7724c.zip |
Move expression data structures to "expression.h", they got
left behind in "parse.h" when the files were split.
Diffstat (limited to 'parse.h')
-rw-r--r-- | parse.h | 41 |
1 files changed, 0 insertions, 41 deletions
@@ -8,47 +8,6 @@ #include "symbol.h" -enum expression_type { - EXPR_CONSTANT, - EXPR_SYMBOL, - EXPR_BINOP, - EXPR_DEREF, - EXPR_PREOP, - EXPR_POSTOP, - EXPR_CAST, - EXPR_SIZEOF, - EXPR_CONDITIONAL, - EXPR_STATEMENT, -}; - -struct expression { - int type, op; - struct token *token; - union { - struct expression *unop; - struct statement *statement; - struct symbol *symbol; - struct binop_arg { - struct expression *left, *right; - }; - struct deref_arg { - struct expression *deref; - struct token *member; - }; - struct cast_arg { - struct symbol *cast_type; - struct expression *cast_expression; - }; - struct conditional_expr { - struct expression *conditional, *cond_true, *cond_false; - }; - struct statement_struct { - struct symbol_list *syms; - struct statement_list *stmts; - }; - }; -}; - enum statement_type { STMT_NONE, STMT_EXPRESSION, |