[antlr-interest] Recursive conditional template output.

craig at palantir.co.za craig at palantir.co.za
Wed Aug 6 03:44:13 PDT 2008


Hi Mark,

I am outputting a sql statement with the header portion as the select and the
body as the where. I am not outputting two files.

Does the template really not work this way?
Surely using groups or recursion would solve this somehow?

I am probably just not understanding how these things are typically used.

>> Hello Craig,
>>
>> An alternative idea is for the template to just
>> output it once, with the output like:
>>
>> - a specal character sequence with the file name of the header
>> - header output
>> - a specal character sequence with the file name of the body
>> - body output
>>
>> And then iterate over the template output, splitting it up,
>> and writing it to the header and body files.
>>
>> Regards, Mark

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





More information about the antlr-interest mailing list