Changeset 205 in dev for trunk/jenga/include/smoothie


Ignore:
Timestamp:
Jul 12, 2007, 2:57:04 AM (17 years ago)
Author:
dai_9181
Message:

コード全体のリファクタリングを実施

Location:
trunk/jenga/include/smoothie
Files:
10 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/include/smoothie/BasicFixed.h

    r170 r205  
    186186#define ESC_IMPORTS         'q'     // Imports
    187187#define ESC_CLEARNAMESPACEIMPORTED 'r'  // _ClearNamespaceImported
     188#define ESC_OPERATOR        's'
    188189//EXEファイル用制御エスケープシーケンス
    189 #define ESC_USING           's'     // Print命令語のUsing
    190 #define ESC_FOR             't'     // Open命令語のFor
    191 #define ESC_LINENUM         'u'     // 行番号を示す
     190#define ESC_USING           't'     // Print命令語のUsing
     191#define ESC_FOR             'u'     // Open命令語のFor
     192#define ESC_LINENUM         'v'     // 行番号を示す
    192193
    193194//オブジェクト指向エスケープシーケンス
     
    203204#define ESC_INTERFACE       (char)0xA9
    204205#define ESC_ENDINTERFACE    (char)0xAA
    205 #define ESC_OPERATOR        (char)0xAB
  • trunk/jenga/include/smoothie/LexicalAnalysis.h

    r173 r205  
    11#pragma once
     2
     3#include <string>
     4#include <vector>
     5
     6#include <windows.h>
     7
     8typedef std::vector<int> Subscripts;
     9
     10enum ReferenceKind
     11{
     12    RefNon = 0,     // no reference member
     13    RefDot,         // obj.member
     14    RefPointer,     // obj->member
     15};
    216
    317bool IsVariableTopChar(char c);
     
    1327bool IsCommandDelimitation( char c );
    1428int GetStringInPare_RemovePare(char *buffer,const char *ReadBuffer);
    15 void GetArrange(char *variable,char *variAnswer,int *SubScripts);
     29void GetArrange(char *variable,char *variAnswer, Subscripts &subscripts );
     30bool SplitMemberName( const char *desc, char *object, char *member, ReferenceKind &refType );
     31bool SplitMemberName( const char *desc, char *object, char *member );
     32void GetCalcName(int idCalc,char *name);
     33BYTE ToCalcId( const char *name );
     34std::string Operator_NaturalStringToCalcMarkString( const std::string &name );
     35std::string Operator_CalcMarkStringToNaturalString( const std::string &name );
  • trunk/jenga/include/smoothie/LexicalScoping.h

    r181 r205  
    5656
    5757    // スコープを終了
    58     void End();
     58    virtual void End() = 0;
    5959
    6060    // スコープを検索
  • trunk/jenga/include/smoothie/Smoothie.h

    r194 r205  
    22
    33#include "Source.h"
    4 #include "ObjectModule.h"
    54#include "LexicalScoping.h"
    65
     
    2726    class Temp{
    2827    public:
    29         // コンパイル中のクラス
    30         static const CClass *pCompilingClass;
    31 
    3228        // レキシカルスコープの状態
    3329        static CLexicalScopes *pLexicalScopes;
  • trunk/jenga/include/smoothie/Source.h

    r173 r205  
    77#include <stdlib.h>
    88
    9 #include "BasicFixed.h"
     9#include <jenga/include/common/Exception.h>
     10#include <jenga/include/smoothie/BasicFixed.h>
    1011
    1112using namespace std;
     
    100101        if( index>GetLength() )
    101102        {
    102             throw "bad access";
     103            Jenga::Throw( "BasicSource bad access" );
    103104        }
    104105        return buffer[2+index];
Note: See TracChangeset for help on using the changeset viewer.