Changeset 394 in dev for trunk


Ignore:
Timestamp:
Feb 24, 2008, 9:02:30 PM (17 years ago)
Author:
dai_9181
Message:
 
Location:
trunk/jenga
Files:
2 edited

Legend:

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

    r360 r394  
    1818
    1919bool IsVariableTopChar(char c);
    20 bool IsVariableChar(char c);
     20bool IsVariableChar( char c, bool isGenericsChars = false );
    2121bool IsBlank(char c);
    2222int GetOneParameter(const char *Parameter,int pos,char *retAns);
  • trunk/jenga/src/smoothie/LexicalAnalysis.cpp

    r362 r394  
    1313    return false;
    1414}
    15 bool IsVariableChar(char c){
     15bool IsVariableChar( char c, bool isGenericsChars ){
    1616    if((c>='A'&&c<='Z')||(c>='a'&&c<='z')||(c>='0'&&c<='9')||
    1717        c=='%'||c=='!'||c=='#'||c=='$'||
     
    2020        return true;
    2121    }
     22
     23    if( isGenericsChars )
     24    {
     25        if( c == '<' || c == '>' )
     26        {
     27            return true;
     28        }
     29    }
     30
    2231    return false;
    2332}
Note: See TracChangeset for help on using the changeset viewer.