You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the code in expr.c, token 5 should stand for token type = T_INTLIT (in this case, which is 5 in enum). The error message is a little misleading for me since it's unaligned to other common error messages.
Will it be better if set the error message to syntax error on line 1 token 2, token type 5 by adding a global variable to track the pointed token?
Hi, thanks for the excellent content of the book! I have really learned a lot from it.
However, when I was reading Part 3: Operator Precedence, the error message came from input03 confused me.
acwj/03_Precedence/input03
Line 1 in 531afba
According to the code in expr.c,
token 5
should stand for token type = T_INTLIT (in this case, which is 5 in enum). The error message is a little misleading for me since it's unaligned to other common error messages.Will it be better if set the error message to
syntax error on line 1 token 2, token type 5
by adding a global variable to track the pointed token?acwj/03_Precedence/expr.c
Lines 28 to 43 in 531afba
Same issue also on
acwj/03_Precedence/expr.c
Lines 10 to 25 in 531afba
Thanks again😃
The text was updated successfully, but these errors were encountered: