Ignore:
Timestamp:
Apr 29, 2008, 11:36:37 AM (17 years ago)
Author:
dai_9181
Message:

Symbolコンストラクタを少なくし、LexicalAnalyzer::FullNameToSymbolメソッドを実装。

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

Legend:

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

    r507 r508  
    5151        : isBuildSuccessful( false )
    5252        , pObjectModule( new ObjectModule )
    53         , pNowObjectModule( pObjectModule )
    5453        , targetModuleType( Exe )
    5554        , isDebug( false )
     
    5756        , isCore( false )
    5857    {
     58        SelectObjectModule( *pObjectModule );
    5959        Symbol::RegistNamespaceSupporter( &namespaceSupporter );
    6060    }
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/LexicalAnalyzer.h

    r506 r508  
    88public:
    99    static bool CollectNamespaces( const char *source, NamespaceScopesCollection &namespaceScopesCollection );
     10    static Symbol FullNameToSymbol( const char *fullName );
     11    static Symbol FullNameToSymbol( const std::string &fullName );
    1012};
    1113
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Symbol.h

    r505 r508  
    4747    {
    4848    }
    49     Symbol( const char *fullName );
    50     Symbol( const string &fullName );
    5149    Symbol( const Symbol &symbol )
    5250        : namespaceScopes( symbol.namespaceScopes )
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Variable.h

    r392 r508  
    5959public:
    6060    Variable( const string &name, const Type &type, bool isConst, bool isRef, const std::string &paramStrForConstructor, bool hasInitData )
    61         : Symbol( name )
     61        : Symbol( ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( name ) )
    6262        , type( type )
    6363        , isConst( isConst )
Note: See TracChangeset for help on using the changeset viewer.