45 const size_t startPos =
m_pos;
46 const wxUniChar curCh =
curChar();
54 else if( curCh ==
')' )
59 else if( curCh ==
'*' )
64 else if( curCh ==
'/' )
69 else if( curCh ==
'=' )
74 else if( curCh ==
'<' )
81 else if( nextCh ==
'>' )
92 else if( curCh ==
'>' )
105 else if( curCh ==
'&' && nextCh ==
'&' )
111 else if( curCh ==
'|' && nextCh ==
'|' )
117 else if( curCh ==
'\'' )
119 std::cout <<
"start const string" << std::endl;
120 wxString constString;
121 while(
m_it !=
m_expr.end() && nextCh !=
'\'' )
123 constString += nextCh;
126 std::cout <<
"end const string: " << constString << std::endl;
136 else if( curCh ==
'+' && !wxIsdigit( nextCh ) )
141 else if( curCh ==
'-' && !wxIsdigit( nextCh ) )
146 else if( curCh ==
'+' || curCh ==
'-' || wxIsdigit( curCh ) )
148 wxString digitString = curCh;
149 while( wxIsdigit( nextCh ) )
151 digitString += nextCh;
156 digitString.ToLong( &value );
163 wxString identString = curCh;
164 while( wxIsalnum( nextCh ) )
166 identString += nextCh;
170 if( identString.IsSameAs( wxT(
"True" ),
false ) )
174 else if( identString.IsSameAs( wxT(
"False" ),
false ) )
178 else if( identString.IsSameAs( wxT(
"Div" ),
false ) )
182 else if( identString.IsSameAs( wxT(
"Mod" ),
false ) )
186 else if( identString.IsSameAs( wxT(
"And" ),
false ) )
190 else if( identString.IsSameAs( wxT(
"Or" ),
false ) )
194 else if( identString.IsSameAs( wxT(
"Xor" ),
false ) )
198 else if( identString.IsSameAs( wxT(
"Not" ),
false ) )
202 else if( identString.IsSameAs( wxT(
"Between" ),
false ) )
206 else if( identString.IsSameAs( wxT(
"Like" ),
false ) )
const ALTIUM_RULE_TOKEN & Peek() const
ALTIUM_RULE_TOKEN m_currentToken
const ALTIUM_RULE_TOKEN & Next()
ALTIUM_RULE_TOKEN m_nextToken
wxString::const_iterator m_it