aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/parse.h
diff options
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-13 18:10:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:15 -0700
commita9400ca17ec93398a39a69079f10f429d37de18b (patch)
tree2c721188234b441b53f7f15b8ad01168d1c14249 /parse.h
parent24104678556e6d8cc7ff3f775dfdd42c21c9f995 (diff)
downloadsparse-dev-a9400ca17ec93398a39a69079f10f429d37de18b.tar.gz
Start handling minimal semantic information, needed for types.
This adds a layer of symbol information on top of the raw tokens.
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse.h b/parse.h
index 27421184..c8cf6b48 100644
--- a/parse.h
+++ b/parse.h
@@ -7,6 +7,7 @@ enum expression_type {
EXPR_DEREF,
EXPR_PREOP,
EXPR_POSTOP,
+ EXPR_CAST,
};
struct expression {
@@ -21,6 +22,10 @@ struct expression {
struct expression *deref;
struct token *member;
};
+ struct cast_arg {
+ struct expression *cast_type;
+ struct expression *cast_expression;
+ };
};
};