1.1 --- a/src/Parser.cpp Sun Sep 16 23:33:48 2012 -0700
1.2 +++ b/src/Parser.cpp Mon Sep 17 00:10:01 2012 -0700
1.3 @@ -357,6 +357,19 @@
1.4 return new (pool_) UnaryExpression(pos, token, expr);
1.5 }
1.6
1.7 + case TOK_SIZEOF:
1.8 + {
1.9 + scanner_.scan();
1.10 + if (!expect(TOK_LPAREN))
1.11 + return NULL;
1.12 + Expression *expr = unary();
1.13 + if (!expr)
1.14 + return NULL;
1.15 + if (!expect(TOK_RPAREN))
1.16 + return NULL;
1.17 + return new (pool_) UnaryExpression(pos, token, expr);
1.18 + }
1.19 +
1.20 case TOK_LABEL:
1.21 {
1.22 scanner_.scan();