[antlr-interest] How to get filename into token (c++)?

Peter Palotas peter.palotas at gmail.com
Sat Oct 21 05:57:10 PDT 2006


Forgot to mention that I am using ANTLR 2.7.6.

On 10/21/06, Peter Palotas <peter.palotas at gmail.com> wrote:
>
> I'm having some real problems getting filename information for tokens in
> C++. It seems the default token class simply does nothing when setFilename()
> is called.
>
> How can I make ANTLR use a custom Token class, that does recognize
> setFilename()?
>
> Sincerely, Peter
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20061021/8f777766/attachment.html 


More information about the antlr-interest mailing list