Changeset ca33b15


Ignore:
Timestamp:
Mar 30, 2021, 6:55:13 PM (6 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
1f652a7, c60ef63
Parents:
98337569
Message:

create downstream data structures for array-type for-control

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r98337569 rca33b15  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Mar 30 16:56:54 2021
    13 // Update Count     : 4952
     12// Last Modified On : Tue Mar 30 18:39:23 2021
     13// Update Count     : 4965
    1414//
    1515
     
    12371237                { $$ = forCtrl( $3, $1, $3->clone(), $4, $5, $7 ); }
    12381238
    1239         | comma_expression ';' TYPEDEFname                                      // CFA
    1240                 { SemanticError( yylloc, "Array interator is currently unimplemented." ); $$ = nullptr; }
     1239        | comma_expression ';' TYPEDEFname                                      // CFA, array type
     1240                {
     1241                        SemanticError( yylloc, "Array interator is currently unimplemented." ); $$ = nullptr;
     1242                        $$ = forCtrl( new ExpressionNode( build_varref( $3 ) ), $1, nullptr, OperKinds::Range, nullptr, nullptr );
     1243                }
    12411244
    12421245                // There is a S/R conflicit if ~ and -~ are factored out.
Note: See TracChangeset for help on using the changeset viewer.