[antlr-interest] source code formatter

Fredrik Ohrstrom oehrstroem at gmail.com
Sat Jul 25 11:08:20 PDT 2009


I think you should have a look at TokenRewriteStream as well.
It depends on what you are going to do.

//Fredrik

2009/7/24 sgoto <samuelgoto at gmail.com>:
> Hi,
>    I am having a hard time using tree grammars for source code
> formatting/beautifier for language X. Are tree grammars actually meant to
> help me with source code formatting or am I better off with depth first
> visitors ?
>
>    By reading Terrence's post about how translators should use tree grammars
> makes me want to use it, it seems to be addressing the issues I have with
> visitors for translators, but I am not sure if it will help me much with
> formatters.
>    ideas ?
> --
> f u cn rd ths u cn b a gd prgmr !
>
>
> 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