[antlr-interest] antlr suitable for xml languages? (like bpel andare there existing grammaires)

Scott Stanchfield scott at javadude.com
Mon Dec 19 20:08:59 PST 2005


> SOA Work writes:
>  >
>  > 1. I think the efford writing a grammair file with antxr 
> is not as huge as with plain antlr  > What about writing an 
> XML Schema parser and extending it with functionality to 
> generate an antxr grammar?  This would deliver a schema 
> compatible antxr grammar for _any_ xml subgrammar.
> 
> Or did anybody do this already??

I mentioned that several notes back. I was planning to do this but haven't
had the time. I was thinking of using the eclipse xsd stuff to read a schema
and then create the grammar.

This would also help when the schema changes -- you could diff a
newly-generated antxr grammar against the "grammar-only" output of an older
grammar and see exactly what needs to change. This would be a huge leg up
against any other kind of XML processor.

Later,
-- Scott



More information about the antlr-interest mailing list