Changeset 547 in dev for trunk/ab5.0/abdev/compiler_x86


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

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

Location:
trunk/ab5.0/abdev/compiler_x86
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/compiler_x86/MakePeHdr.cpp

    r545 r547  
    141141
    142142    //列挙体に関する情報を収集
    143     compiler.enumInfoCollection.InitEnum();
    144 
    145     //列挙体からクラスコードを生成
    146     char *temp;
    147     temp=compiler.enumInfoCollection.GenerateSourceCode();
    148     AddSourceCode(temp);
    149     HeapDefaultFree(temp);
     143    {
     144        ActiveBasic::Compiler::LexicalAnalyzer::CollectEnums(
     145            compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
     146            compiler.enumInfoCollection
     147        );
     148
     149        // デリゲートからクラスコードを生成
     150        std::string tempSource = ActiveBasic::Compiler::LexicalAnalyzer::GenerateEnumsSourceCode(
     151            compiler.enumInfoCollection
     152        );
     153        AddSourceCode( tempSource.c_str() );
     154    }
    150155
    151156    // 名前空間情報を取得
  • trunk/ab5.0/abdev/compiler_x86/compiler_x86.vcproj

    r546 r547  
    12691269                </File>
    12701270                <File
     1271                    RelativePath="..\BasicCompiler_Common\src\LexicalAnalyzer_Enum.cpp"
     1272                    >
     1273                </File>
     1274                <File
    12711275                    RelativePath="..\BasicCompiler_Common\src\LexicalAnalyzer_Procedure.cpp"
    12721276                    >
Note: See TracChangeset for help on using the changeset viewer.