Ignore:
Timestamp:
May 4, 2008, 10:07:31 PM (17 years ago)
Author:
dai_9181
Message:

Enum収集をLexicalAnalyzerクラスに実装しなおした。

Location:
trunk/ab5.0/abdev/BasicCompiler_Common/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Enum.h

    r505 r547  
    4646    }
    4747
    48     void Collect( const char *buffer, int nowLine );
    49 
    5048    const EnumMember &GetEnumMember( const std::string &memberName ) const
    5149    {
     
    5856        }
    5957        throw;
     58    }
     59
     60    std::vector<EnumMember> &GetEnumMembers()
     61    {
     62        return members;
    6063    }
    6164};
     
    7780        return NULL;
    7881    };
    79 
    80     void InitEnum(void);
    81     char *GenerateSourceCode(void);
    8282};
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/LexicalAnalyzer.h

    r543 r547  
    2626    static Symbol FullNameToSymbol( const char *fullName );
    2727    static Symbol FullNameToSymbol( const std::string &fullName );
     28
     29    // 列挙型を収集
     30    static void CollectEnumMembers( EnumInfo &enumInfo, const char *buffer, int nowLine );
     31    static void CollectEnums( const char *source, EnumInfoCollection &enums );
     32    static std::string GenerateEnumsSourceCode( const EnumInfoCollection &enums );
    2833
    2934    // クラスの名前情報を収集する
Note: See TracChangeset for help on using the changeset viewer.