Todd Stevenson
2012-12-03 20:26:33 UTC
I am getting a InvalidCastException (C#) when reading the EOF token in the token stream. I have overridden the emit method in the lexer to use a custom token. The generated grammar code is casting the EOF token to my custom token type even though it was created as a Commontoken somewhere in Antlr. What can I do to correct this?
Thanks.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
Thanks.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address