Changeset 372 in dev for trunk/abdev/BasicCompiler_Common
- Timestamp:
- Nov 23, 2007, 1:44:13 PM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Compile.cpp
r359 r372 139 139 } 140 140 141 void 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 141 152 void ChangeOpcode(char *Command){ 142 153 extern HANDLE hHeap; … … 337 348 case COM_FOR: 338 349 OpcodeFor(Command+2); 350 break; 351 case COM_FOREACH: 352 OpcodeForeach(Command+2); 339 353 break; 340 354 case COM_DO: -
trunk/abdev/BasicCompiler_Common/Intermediate_Step2.cpp
r361 r372 451 451 ComNum=COM_FOR; 452 452 } 453 else if(lstrcmpi(com,"Foreach")==0){ 454 KillSpaces(Command+i,pam); 455 ComNum=COM_FOREACH; 456 } 453 457 else if(lstrcmpi(com,"Next")==0){ 454 458 KillSpaces(Command+i,pam);
Note:
See TracChangeset
for help on using the changeset viewer.