Ignore:
Timestamp:
May 8, 2008, 3:27:32 PM (16 years ago)
Author:
dai_9181
Message:

Consts/ConstMacrosクラスのLexicalAnalyzerクラスへの依存性をなくした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/calculation.cpp

    r578 r579  
    498498                        //定数関数
    499499
    500                         ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find( temporary );
     500                        ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find(
     501                            ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( temporary )
     502                        );
    501503                        if( !pConstMacro )
    502504                        {
     
    663665                        /////////
    664666                        StrPtr[pnum]=0;
    665                         type[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType(Parms);
     667                        type[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType(
     668                            ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( Parms )
     669                        );
    666670                        if(type[pnum]){
    667671                            if(IsRealNumberType(type[pnum])){
    668672                                //実数型
    669                                 nums[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetDoubleData(Parms);
     673                                nums[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetDoubleData(
     674                                    ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( Parms )
     675                                );
    670676                            }
    671677                            else if(IsWholeNumberType(type[pnum])){
    672678                                //整数
    673                                 i64nums[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(Parms);
     679                                i64nums[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
     680                                    ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( Parms )
     681                                );
    674682                            }
    675683/*                          else if(type[pnum]==DEF_STRING){
     
    12231231
    12241232                    //定数
    1225                     ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find( temporary );
     1233                    ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find(
     1234                        ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( temporary )
     1235                    );
    12261236                    if(pConstMacro){
    12271237                        //マクロ関数の場合
     
    12331243
    12341244                //定数
    1235                 i3 = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType(Command+i2);
     1245                i3 = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType(
     1246                    ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( Command+i2 )
     1247                );
    12361248                if(i3==DEF_STRING) return 1;    //文字列
    12371249                if(i3) return 0;            //数値
Note: See TracChangeset for help on using the changeset viewer.