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

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

File:
1 edited

Legend:

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

    r506 r508  
    5353    return isSuccessful;
    5454}
     55
     56Symbol LexicalAnalyzer::FullNameToSymbol( const char *fullName )
     57{
     58    char areaName[VN_SIZE] = "";        //オブジェクト変数
     59    char nestName[VN_SIZE] = "";        //入れ子メンバ
     60    bool isNest = SplitMemberName( fullName, areaName, nestName );
     61
     62    return Symbol( NamespaceScopes( areaName ), nestName );
     63}
     64
     65Symbol LexicalAnalyzer::FullNameToSymbol( const std::string &fullName )
     66{
     67    return FullNameToSymbol( fullName.c_str() );
     68}
Note: See TracChangeset for help on using the changeset viewer.