aboutsummaryrefslogtreecommitdiff
path: root/boot/parser.yy
diff options
context:
space:
mode:
Diffstat (limited to 'boot/parser.yy')
-rw-r--r--boot/parser.yy5
1 files changed, 5 insertions, 0 deletions
diff --git a/boot/parser.yy b/boot/parser.yy
index c45fdbc..0c32610 100644
--- a/boot/parser.yy
+++ b/boot/parser.yy
@@ -643,6 +643,11 @@ type_declaration: identifier_definition "=" type_expression
{
$$ = new boot::type_declaration(boot::make_position(@$), std::move(*$1), $3);
}
+ | identifier_definition "=" "extern"
+ {
+ $$ = new boot::type_declaration(boot::make_position(@$), std::move(*$1),
+ new boot::extern_type_expression(boot::make_position(@$)));
+ }
type_declarations:
type_declaration type_declarations
{