[antlr-interest] Code beautifier-indentation
John D. Mitchell
johnm-antlr at non.net
Thu Mar 17 11:35:28 PST 2005
>>>>> "Meena" == Meena Moktali <mmoktali at bphx.dk> writes:
[...]
> hi John, The final goal is to indent the code according to standards for
> each block. I can give u an example as below.. Can u help me with this?
Well, given a quick look at your example it looks like all that you need to
do is deal with indentation. If that's really the case then you can
certainly come up with a simple hack to read in the input, keep track of
the level, and output the input with the appropriate indentation.
Have fun,
John
More information about the antlr-interest
mailing list