Ignore:
Timestamp:
Jan 11, 2021, 10:10:33 PM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
20207c0
Parents:
2501ae5
Message:

add new type kinds DStype and ALtype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r2501ae5 rb66d14a  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jan 11 14:14:16 2021
    13 // Update Count     : 4630
     12// Last Modified On : Mon Jan 11 21:32:10 2021
     13// Update Count     : 4633
    1414//
    1515
     
    24492449                { $$ = DeclarationNode::newTypeParam( $2, $1 )->addTypeInitializer( $4 )->addAssertions( $5 ); }
    24502450        | '[' identifier_or_type_name ']'
    2451                 { typedefTable.addToScope( *$2, TYPEDEFname, "9" ); }
     2451                {
     2452                        typedefTable.addToScope( *$2, TYPEDEFname, "9" );
     2453                        $$ = DeclarationNode::newTypeParam( TypeDecl::ALtype, $2 );
     2454                }
    24522455        // | type_specifier identifier_parameter_declarator
    24532456        | assertion_list
     
    24612464                { $$ = TypeDecl::Dtype; }
    24622465        | '*'
    2463                 { $$ = TypeDecl::Dtype; }                                               // dtype + sized
     2466                { $$ = TypeDecl::DStype; }                                              // dtype + sized
    24642467        | ELLIPSIS
    24652468                { $$ = TypeDecl::Ttype; }
Note: See TracChangeset for help on using the changeset viewer.