Changeset 2ab31fd for src/Parser


Ignore:
Timestamp:
Jun 11, 2024, 5:06:32 PM (5 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
12f1156, f1d2c44
Parents:
42cdd07d
Message:

parse tuple-element declarations but unimplemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r42cdd07d r2ab31fd  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Apr 27 16:23:14 2024
    13 // Update Count     : 6625
     12// Last Modified On : Tue Jun 11 16:56:42 2024
     13// Update Count     : 6638
    1414//
    1515
     
    20242024        | type_qualifier_list cfa_abstract_tuple identifier_or_type_name asm_name_opt
    20252025                { $$ = $2->addQualifiers( $1 )->addName( $3 )->addAsmName( $4 ); }
     2026
     2027                // [ int s, int t ];                    // declare s and t
     2028                // [ int, int ] f();
     2029                // [] g( int );
     2030                // [ int x, int y ] = f();              // declare x and y, initialize each from f
     2031                // g( x + y );
     2032        | cfa_function_return asm_name_opt
     2033                { SemanticError( yylloc, "tuple-element declarations is currently unimplemented." ); $$ = nullptr; }
     2034        | type_qualifier_list cfa_function_return asm_name_opt
     2035                { SemanticError( yylloc, "tuple variable declaration is currently unimplemented." ); $$ = nullptr; }
    20262036        ;
    20272037
Note: See TracChangeset for help on using the changeset viewer.