On Sunday, 18 January 2015 at 15:52:24 UTC, Jens Bauer wrote:
... Ah, much more readable.
Maybe I misunderstood your question, but what you think about this way:
while(1){
if(c >= '0' && c <= '9')
{
/* number */
c = *s++;
... do something with c ...
}
else if ((c >= 'A' && c <= 'Z') || (c >='a' && c <= 'z') || c
== '_')
{
/* token */
c = *s++;
}
else if(debug)
{
/* error */
break;
}
}
Matheus.
