Ignore:
Timestamp:
May 4, 2008, 2:00:36 AM (17 years ago)
Author:
dai_9181
Message:

・GetConstInfo関数を廃止し、LexicalAnalyzer::CollectConstsメソッドを追加。

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

Legend:

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

    r524 r543  
    11#pragma once
    2 
    3 void AddConst( const NamespaceScopes &namespaceScopes, char *buffer );
    42
    53//定数
     
    7169public:
    7270
    73     void Add( const NamespaceScopes &namespaceScopes, char *buffer);
    74     void Add( const NamespaceScopes &namespaceScopes, const std::string &name, char *Expression);
     71    void Add( const NamespaceScopes &namespaceScopes, const std::string &name, const char *Expression);
    7572    void Add( const NamespaceScopes &namespaceScopes, const std::string &name, int value);
    7673
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/LexicalAnalyzer.h

    r542 r543  
    3434    static void CollectTypeDefs( const char *source, TypeDefCollection &typeDefs );
    3535
     36    // 定数を収集する
     37    static void AddConstEnum( Consts &consts, const NamespaceScopes &namespaceScopes, const char *buffer );
     38    static void CollectConsts( const char *source, Consts &consts, ConstMacros &constMacros );
     39
    3640    // クラスを収集する
    3741    static void AddMethod(CClass *pobj_c, UserProc *pUserProc, Prototype::Accessibility accessibility, BOOL bStatic, bool isConst, bool isAbstract,
Note: See TracChangeset for help on using the changeset viewer.