[antlr-interest] How to determine the width of a tab character.

Alex Shneyderman a.shneyderman at gmail.com
Mon Mar 12 07:55:23 PDT 2007


In case anyone wonders how to control it. You can call

lexer.setTabSize(columnsToAdvance)

On 3/12/07, Alex Shneyderman <a.shneyderman at gmail.com> wrote:
> I am using java grammar and parsing java files works. Except that I
> can not make sense of the amount of columns that the \t character
> occpies.
>
> Empirically it seems 8 is the number I wonder why and how does one
> deal with this, when exact location of the element is important?
>
> --
> Thanks,
> Alex.
>


-- 
Thanks,
Alex.


More information about the antlr-interest mailing list