[antlr-interest] Preserve source code comments

Michael Bedward michael.bedward at gmail.com
Thu Oct 18 21:08:28 PDT 2012


Juancarlo,

Not sure if this is relevant to your problem, but I put together a
class some time ago to collect tokens on two or more channels:

http://jiffle.googlecode.com/git/language/src/main/java/org/jaitools/jiffle/parser/MultiChannelTokenStream.java

Michael


On 19 October 2012 13:52, Juancarlo Añez <apalala at gmail.com> wrote:
> Terrence,
>
>  This is what hidden channels are for :)
>>
>> http://www.antlr.org/wiki/pages/viewpage.action?pageId=557063
>>
>
> That would work.
>
> How do I recover the current token index? Mmm. this.input.index() ?
>
> --
> Juancarlo *Añez*
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address


More information about the antlr-interest mailing list