[stringtemplate-interest] Re: [antlr-interest] StringTemplate + preserving comments

Terence Parr parrt at cs.usfca.edu
Tue Nov 8 22:40:08 PST 2005


> Nope, newlines are being sent to the parser as well (although EOL+
> becomes EOL). Where are the fields for this linked list in the  
> Token? I
> can't see it in the code API on the web nor in the source  
> (*Token.java).

Must be hanging out in the CommonHiddenStreamToken object.  Yep,

public class CommonHiddenStreamToken extends CommonToken {
     protected CommonHiddenStreamToken hiddenBefore;
     protected CommonHiddenStreamToken hiddenAfter;
...
}

manual linked list. ;)

> PS: Thanks for your help!

At your service :)

Ter



More information about the antlr-interest mailing list