[antlr-interest] Re: ANTLR + StringTemplates = formattingTool?

Terence Parr parrt at cs.usfca.edu
Fri May 14 16:59:53 PDT 2004


On May 14, 2004, at 4:30 PM, birmanstefan wrote:

> First of all, thanks!
>
> 1.
>    I look forward using StringTemplates2.0b1.

I'm off to present a paper on it in NYC next week, but then should be 
back and can get the doc finished.

>
> 2.
>    I like the idea of using inline templates; it's more handy for the
> programmer. In my case, though, the user must have access to the
> template without digging in the grammar; so there should be an
> interface for the sake of those fancy users who want to customize them
> in their own extraterestrial way. This is why I was trying to use a
> "dynamic linking" of the node to it's template in the library (it's
> just a point).

Yeah, it's good to have the templates elsewhere so someone can just 
change them easily w/o concern for their use in a grammar.

>
> 4.
>    Indeed, "enumeration" issue seems to be a typical case of wrong
> defined problem. Thanks for the tip.

:)

> 4.
>    By saying "indent based upon the indentation of the attribute" did
> you mean that every attribute can be associated to an indentation
> level?

Correct, relative to any enclosing template :)

Ter

> --
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Cofounder, http://www.peerscope.com pure link sharing





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list