public TOKEN Next()
{
TOKEN rv = null;
while (PeekChar()!=0)
{
Matching(true);
if (!Match(ref rv,(Dfa)m_tokens.starts[m_state]))
{
if (yypos==0)
System.Console.Write("Check text encoding.. ");
int c = PeekChar();
m_tokens.erh.Error(new CSToolsStopException(2,this,"illegal character <"+(char)c+"> "+c));
return null;
}
Matching (false);
if (rv!=null)
{ // or special value for empty action?
rv.pos = m_pch-yytext.Length;
return rv;
}
}
return null;
}