Ignore:
Timestamp:
Oct 18, 2022, 5:48:13 PM (3 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, master
Children:
5408b59
Parents:
a55472cc
Message:

Supports inline enums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    ra55472cc r1e30df7  
    26012601                { $$ = DeclarationNode::newEnumValueGeneric( $1, $2 ); }
    26022602        | INLINE type_name
    2603                 { $$ = DeclarationNode::newEnumValueGeneric( new string("inline"), nullptr ); }
     2603                { $$ = DeclarationNode::newEnumInLine( *$2->type->symbolic.name ); }
    26042604        | enumerator_list ',' identifier_or_type_name enumerator_value_opt
    26052605                { $$ = $1->appendList( DeclarationNode::newEnumValueGeneric( $3, $4 ) ); }
Note: See TracChangeset for help on using the changeset viewer.