Changeset 394 in dev for trunk/jenga/src


Ignore:
Timestamp:
Feb 24, 2008, 9:02:30 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.