I am using a hand-written tokenizer unfortunately(would be more practical to
use Flex), and is using yytokentype in order to increase type safety of the
code.
A problem arrives when I need to return EOF, the '0' token. It requires me to
engage in static_cast'ing 0 to yytokentype, which is ugly and error prone.
Is there any clean solution to this on the Bison side? E.g, can I somehow
generate a token(such as with %token) for EOF?
Cheers,
Frans
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison