[antlr-interest] Another StringTemplate Engine

Andrew Deren andrew at adersoftware.com
Wed Sep 1 09:27:19 PDT 2004


Yes, it was mostly to make things easier. Originally I didn't have some of
those operators (equals, lt, gt), but with time I just added them.
That was one reason I found antlr StringTemplate hard to use. It's strict
separation of content and UI made it hard at times. I'm used to using CF
language, which is content/gui/logic all in one file. Not a good idea, but
gets things done really easily and fast.
I just added few constructs that I thought would be necessary. In some
instanced, you just need to put little bit of logic in your UI.
For example if you're displaying list of orders and want to flag those that
have total less than $100 in red. You could add a property to your business
object, but that's not always desirable, especially if you didn't author the
business object. But of course it could be argued the other way, that if
this requires some attention and if you deiced to change $100 to $200, it
would make more sense to have it in the object itself.
I've just know by experience (created 150,000 line cf back end system) that
sometimes you do need things like that in your UI for simplicity.
Andrew 


-----Original Message-----
From: Terence Parr [mailto:parrt at cs.usfca.edu] 
Sent: Tuesday, August 31, 2004 6:51 PM
To: antlr-interest at yahoogroups.com
Subject: Re: [antlr-interest] Another StringTemplate Engine

Hi Andrew,

Seems interesting.  I take it the enforcing separation philosophy was 
not a prime consideration for your derivative because of the equals 
operation you allow etc...?

Ter

On Aug 31, 2004, at 4:07 PM, Andrew Deren wrote:

> I just wanted to announce that I wrote another string template engine. 
> I
> wanted to use antlr engine, but found syntax hard to understand.
> You can find more info about it at
> http://www.adersoftware.com/?page=templateEngine
> Basically it does what StringTemplate does, plus some more stuff (and 
> some
> less) and syntax is more like XML (actually like Cold Fusion if anyone 
> knows
> it).
> Originally I used antlr as lexer/parser, but ended writing my own 
> mostly
> because I found some construct hard or cumbersome to do using antlr.
> Currently it only works with .net 2.0, but I'm working on 1.1 port and 
> java
> version.
> Sorry if this is a little off-topic, but maybe someone will find this
> useful, as I already used it for several of my projects.
> Andrew
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
--
CS Professor & Grad Director, 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!





 
Yahoo! Groups Links



 





 
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