Changeset 103 in dev for BasicCompiler_Common/Compile.cpp


Ignore:
Timestamp:
May 2, 2007, 4:08:58 AM (17 years ago)
Author:
dai_9181
Message:

名前空間機能をグローバル変数、定数と列挙型に適用。
一部、クラスの静的メンバと名前空間の相性が悪いコードが潜んでいるため、要改修

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Compile.cpp

    r99 r103  
    222222
    223223            case ESC_NAMESPACE:
     224                Smoothie::Lexical::liveingNamespaceScopes.push_back( Command + 2 );
     225                break;
    224226            case ESC_ENDNAMESPACE:
     227                if( Smoothie::Lexical::liveingNamespaceScopes.size() <= 0 ){
     228                    SetError(12,"End Namespace",cp);
     229                }
     230                Smoothie::Lexical::liveingNamespaceScopes.pop_back();
    225231                break;
    226232
Note: See TracChangeset for help on using the changeset viewer.