[antlr-interest] template parser using antlr v3

Ymo ymo.mail at gmail.com
Mon Mar 17 17:11:08 PDT 2008


In the future i would like to introduce more complicated stuff like :
1) <% package org.pkg.name; %>
2) <% import org.pkg.name; %>
3) nested blocks like :
<%for expression %>
   <%for expression %>
   <%/for>
<%/for>
I am reading the xml grammar for this.

3) one complicated feature for me would be how i can switch the separator
token from '<%' to something else like '<#'. A template parser must be
generic enough so that it can be used to generate any kind of text.

This is for a future open source project so i don't mind the grammar being
in the antlr tree.

BTW i noticed the grammar files have no explicitly stated license. Does the
license for example grammar files defaults to the antlr license ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080317/865f500d/attachment.html 


More information about the antlr-interest mailing list