Return value from nextToken() is the quote character instead of TT_WORD
when a quoted-string is encounted in the stream.
Result from toString() is then '"' when the quote character is ".
Code should be changed as follows:
At the end of the if-statement
if ((ctype & CT_QUOTE) != 0) {
the return statement should be
return ttype = TT_WORD; // was "return ttype;"
when a quoted-string is encounted in the stream.
Result from toString() is then '"' when the quote character is ".
Code should be changed as follows:
At the end of the if-statement
if ((ctype & CT_QUOTE) != 0) {
the return statement should be
return ttype = TT_WORD; // was "return ttype;"