Ignore:
Timestamp:
Dec 10, 2006, 10:58:26 AM (18 years ago)
Author:
dai_9181
Message:

LexicalAnalysisのベース部分を用意。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/calculation.cpp

    r11 r14  
    1010_int64 i64stack[255];
    1111
     12bool IsNumberTopChar(char *buffer){
     13    int c = buffer[0];
     14    if('0' <= c && c <= '9') return true;
     15    if(buffer[0] == '&' && (buffer[1] == 'h' || buffer[1] == 'H' || buffer[1] == 'o' || buffer[1] == 'O')) return true;
     16
     17    return false;
     18}
     19bool IsNumberChar(char c){
     20    if('0' <= c && c <= '9') return true;
     21    if('a' <= c && c <= 'f') return true;
     22    if('A' <= c && c <= 'F') return true;
     23
     24    return false;
     25}
    1226BOOL IsJudgMark(char *Command,int p){
    1327    if(Command[p]==1){
Note: See TracChangeset for help on using the changeset viewer.