diff options
author | Søren Sandmann Pedersen <ssp@l3000.localdomain> | 2010-11-14 22:23:45 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@l3000.localdomain> | 2010-11-14 22:23:45 -0500 |
commit | 9ca6a5181d73a8a5a64b993748e3faf759cf594a (patch) | |
tree | 1f1c89034c98cb6d1811f24d0f56996c7b7d9f25 /parser.c | |
parent | 0e359dae3a3008b1cfd80a8544b1e3bbcc6aec9f (diff) |
first class labels
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -428,6 +428,11 @@ parse_type_spec (const token_t *in, *result = ast_type_spec_new (AST_STRING_TYPE); return tmp; } + else if ((tmp = parse_token (in, TOKEN_LABEL))) + { + *result = ast_type_spec_new (AST_LABEL_TYPE); + return tmp; + } else if ((tmp = parse_token (in, TOKEN_IDENTIFIER))) { *result = ast_type_spec_new_identifier (in->identifier.name); |