The value of the TT_EOF
variable happens to be an integer, so you
could use that integer in your programs instead of TT_EOF
. Good
programming practice dictates that you should never use an integer in place
of an instance variable, because using the instance variable makes it
clear, without requiring any inference, that you are testing for the end of the token
stream.