[antlr-interest] Rule automation
Sam Barnett-Cormack
s.barnett-cormack at lancaster.ac.uk
Wed Sep 9 07:23:04 PDT 2009
Vaclav Barta wrote:
> On Wednesday 09 September 2009 11:24:06 Sam Barnett-Cormack wrote:
>> Rule templatisation might be a funky feature to be added, but it doesn't
>> exist at present, AFAIK.
> I suppose most users of such capabilities would want to make their own syntax
> (and semantics) anyway, IOW an ANTLR grammar preprocessor - in ANTLR, of
> course... :-)
Nah, true built-in templatisation would be more useful, I reckon. Could
potentially be quite clever (recursion, chaining of templates, etc).
Even providing a standard set of templates covering common examples.
Could even allow template libraries.
--
Sam Barnett-Cormack
More information about the antlr-interest
mailing list