Ignore:
Timestamp:
Nov 23, 2007, 1:44:13 PM (17 years ago)
Author:
dai_9181
Message:

Foreachステートメントを実装中…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/Compile.cpp

    r359 r372  
    139139}
    140140
     141void Compile( const char *source )
     142{
     143    char *temporary = (char *)malloc( lstrlen( source ) + 8192 );
     144    lstrcpy( temporary, source );
     145    int backCp = cp;
     146    MakeMiddleCode( temporary );
     147    ChangeOpcode( temporary );
     148    cp = backCp;
     149    free( temporary );
     150}
     151
    141152void ChangeOpcode(char *Command){
    142153    extern HANDLE hHeap;
     
    337348        case COM_FOR:
    338349            OpcodeFor(Command+2);
     350            break;
     351        case COM_FOREACH:
     352            OpcodeForeach(Command+2);
    339353            break;
    340354        case COM_DO:
Note: See TracChangeset for help on using the changeset viewer.