Changeset 41 in dev for BasicCompiler_Common/calculation.cpp
- Timestamp:
- Jan 28, 2007, 5:28:43 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/calculation.cpp
r36 r41 39 39 Command[p]=='='||Command[p]=='<'||Command[p]=='>'|| 40 40 IsJudgMark(Command,p)|| 41 (Command[p]==1&&Command[p+1]==ESC_AS)) return 1; 41 (Command[p]==1&&Command[p+1]==ESC_AS)|| 42 (Command[p]==1&&Command[p+1]==ESC_BYVAL)) return 1; 42 43 return 0; 43 44 } … … 775 776 else if(Command[i]=='^') i3=CALC_POWER; 776 777 else if(Command[i]==1&&Command[i+1]==ESC_AS) i3=CALC_AS; 778 else if(Command[i]==1&&Command[i+1]==ESC_BYVAL) i3=CALC_BYVAL; 777 779 778 780 i3+=PareNum*100; … … 889 891 sp--; 890 892 break; 893 case CALC_BYVAL: 894 //エラー 895 break; 891 896 } 892 897 } … … 1404 1409 else if(Command[0]=='^') return CALC_POWER; 1405 1410 else if(Command[0]==1&&Command[1]==ESC_AS) return CALC_AS; 1411 else if(Command[0]==1&&Command[1]==ESC_BYVAL) return CALC_BYVAL; 1406 1412 1407 1413 return 0; … … 1480 1486 } 1481 1487 else{ 1482 if(!(Command[i]=='+'||Command[i]=='-'||(Command[i]==1&&Command[i+1]==ESC_NOT))){ 1483 SetError(1,NULL,cp); 1484 return 0; 1488 if(!( 1489 Command[i]=='+'|| 1490 Command[i]=='-'|| 1491 (Command[i]==1&&Command[i+1]==ESC_NOT)|| 1492 (Command[i]==1&&Command[i+1]==ESC_BYVAL) 1493 )){ 1494 SetError(1,NULL,cp); 1495 return 0; 1485 1496 } 1486 1497 if(Command[i]=='+'){
Note:
See TracChangeset
for help on using the changeset viewer.