[stringtemplate-interest] [SPAM] Re: Formal parameters in web templates
Terence Parr
parrt at cs.usfca.edu
Sat Oct 31 14:43:45 PDT 2009
no real estimate but a guess would be late november you could play.
i'm gutting the parser/lexer now since trying to add really good error
handling was impossible with old method. I ended up having to write a
lexer by hand. It's highly context sensitive and even ambiguous
(well, not semantically).
Ter
On Oct 30, 2009, at 12:58 PM, David Hofmann wrote:
> Hi Terr
> Is there an estimate when st4 will be feature complete ?
> Bugs does not matter :) I'll use it anyway because that is a matter
> of time :)
>
> Greetings
>
> --
> David Daniel Hofmann
> WebVAS, Nucleo S.A. - Telecom Personal Paraguay
> http://www.google.com/profiles/hofmanndavid
>
>
>
>
>
> On Tue, Oct 27, 2009 at 4:39 PM, Ran Tavory <rantav at gmail.com> wrote:
> I suppose I'll wait for v4 then, thanks for the replies.
>
>
> On Tue, Oct 27, 2009 at 6:01 PM, Terence Parr <parrt at cs.usfca.edu>
> wrote:
> Hi Ran,
>
> You've asked 2 questions actually :)
>
> 1. Define formal args for nongroup file templates: Coming in STv4.
> All templates will require formal args even in separate files.
>
> 2. Specifying cardinality of parameters (required, optional, multi-
> valued). It's somethng I've considered for years and have commented
> out in the code. ;) I'm still deciding about it's use for STv4.
>
> As for types, I think types would tie templtes too closely to the
> model. But, i understand the desire for them.
>
> Ter
> On Oct 26, 2009, at 10:46 PM, Ran Tavory wrote:
>
>> A newbe question: Is it possible to define the list of formal
>> parameters in a template where my use case would be for a web page?
>>
>> For example, in this template:
>>
>> layout.st
>> <html>
>> <head>
>> <title>$title$</title>
>> <body>
>> $banner()$
>> <hr>
>> $body()$
>> </body>
>> </html>
>>
>> I'd like to say that $title$ is a required parameter. Would even be
>> better if types can be enforced, such as String, Number, Date, List
>> of x etc, but even without static typing, simply listing the formal
>> arguments the template expects would be great.
>> Thanks!
>> _______________________________________________
>> stringtemplate-interest mailing list
>> stringtemplate-interest at antlr.org
>> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
>
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20091031/33e47c06/attachment.html
More information about the stringtemplate-interest
mailing list