Changeset 0b0a285 for src/Parser


Ignore:
Timestamp:
Jun 21, 2023, 2:38:44 AM (14 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
c84dd61
Parents:
fec8bd1
Message:

Basic change for enable enumerated array syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rfec8bd1 r0b0a285  
    38483848                // { SemanticError( yylloc, "New array dimension is currently unimplemented." ); $$ = nullptr; }
    38493849        | '[' push array_type_list pop ']'                                      // CFA
    3850                 { SemanticError( yylloc, "Type array dimension is currently unimplemented." ); $$ = nullptr; }
     3850                { $$ = DeclarationNode::newArray( $3, nullptr, false ); }
    38513851        | multi_array_dimension
    38523852        ;
Note: See TracChangeset for help on using the changeset viewer.