[antlr-interest] interpretation '\t'
Kay Roepke
kroepke at classdump.org
Tue Oct 10 16:35:38 PDT 2006
On 10. Oct 2006, at 13:28 Uhr, Abhijit Nandkumar Ghonge wrote:
> If there is any "parsing exception", it gives me the column
> information in the console. However, the column number erroneous since
> it interprets \t to be certain number of characters. Can I, by any
> means, set the number of columns for the \t. For example, can I set \t
> as 10 spaces or 4 spaces in my grammer file.
I don't think that you can specify the tab-width. I *think* it always
is counted as 4 spaces in the code,
but I might be mistaken. It should be found in the code somewhere,
though.
If this is bothering you badly, you could try to "preprocess" the
grammars, but I'd advise against it.
Or instruct your editor to always use spaces instead of tabs.
This discussion of course is a popular means of igniting a long flame
war ;)
But thanks for reminding me of this, I haven't thought of that
pitfall yet, as I'm going to redo message output for
v3 soon. Maybe I can figure out a way around (probably not...).
-k
--
Kay Röpke <kroepke at classdump.org>
classdump Software
Key fingerprint = A849 0F2C C322 4022 379E 8661 7E1B FE0D 4CD2 A6D0
More information about the antlr-interest
mailing list