Changeset 525f7ad for src/main.cpp


Ignore:
Timestamp:
Jun 19, 2024, 3:20:39 PM (13 days ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
57e43cd
Parents:
1725989
Message:
  1. Add count_e( enum_name ), a pseudo function that return the number of element in an enum; 2. Implementation of enum range loop.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cpp

    r1725989 r525f7ad  
    5353#include "ControlStruct/FixLabels.hpp"      // for fixLabels
    5454#include "ControlStruct/HoistControlDecls.hpp" //  hoistControlDecls
     55#include "ControlStruct/TrasnlateEnumRange.hpp" // translateEnumRange
    5556#include "GenPoly/Box.hpp"                  // for box
    5657#include "GenPoly/InstantiateGeneric.hpp"   // for instantiateGeneric
     
    323324                PASS( "Hoist Struct", Validate::hoistStruct, transUnit );
    324325                PASS( "Validate Generic Parameters", Validate::fillGenericParameters, transUnit );
     326                PASS( "Translate Enum Range Expression", ControlStruct::translateEnumRange, transUnit );
    325327                PASS( "Translate Dimensions", Validate::translateDimensionParameters, transUnit );
    326328                // Need to happen before fixing returns because implementEnumFunc has ReturnStmt
Note: See TracChangeset for help on using the changeset viewer.