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

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

File:
1 edited

Legend:

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

    r504 r508  
    55
    66const NamespaceSupporter *Symbol::namespaceSupporter = NULL;
    7 
    8 Symbol::Symbol( const char *fullName )
    9     : isTargetObjectModule( true )
    10 {
    11     char areaName[VN_SIZE] = "";        //オブジェクト変数
    12     char nestName[VN_SIZE] = "";        //入れ子メンバ
    13     bool isNest = SplitMemberName( fullName, areaName, nestName );
    14 
    15     namespaceScopes = NamespaceScopes( areaName );
    16     name = nestName;
    17 }
    18 Symbol::Symbol( const string &fullName )
    19     : isTargetObjectModule( true )
    20 {
    21     char areaName[VN_SIZE] = "";        //オブジェクト変数
    22     char nestName[VN_SIZE] = "";        //入れ子メンバ
    23     bool isNest = SplitMemberName( fullName.c_str(), areaName, nestName );
    24 
    25     namespaceScopes = NamespaceScopes( areaName );
    26     name = nestName;
    27 }
    287
    298std::string Symbol::GetFullName() const
Note: See TracChangeset for help on using the changeset viewer.