Well you could run the code in the debugger, then start single-stepping through the code.
Type: Posts; User: Salem
Well you could run the code in the debugger, then start single-stepping through the code.
foo.c:232:1: warning: control reaches end of non-void function [-Wreturn-type]
> for (i = startOfToken; i < strlen(token); i++)
If this is false the first time you reach it, the body of the loop...
Well you have this
while (answer.type != EOL)
But no path through getNextToken() ever sets the EOL state.