[antlr-interest] AST of PL/SQL and XML
    Martin Probst 
    mail at martin-probst.com
       
    Fri Nov  4 02:38:11 PST 2005
    
    
  
Hi,
> Is there any chnace to build AST for PL/SQL and XML? As far as i know
> i need to have somegrammar.tree.g file, but i found that file for java
> grammar only. 
The freely available grammars are not all distributed with ANTLR. You
can find them here:
> http://www.antlr.org/grammar/list
and there is also one for PL/SQL.
For XML it's usually completely sufficient to use a normal XML parser,
like the one that comes with the Java SDK, or any choice of the freely
available ones. An XML parser usually creates a DOM Tree or a list of
SAX events which you can then handle in your application.
> Should i write that file myself, or i'm missing some points.
Writing an XML parser is a very bad idea. There are high quality parsers
available and XML parsing can be surprisingly tricky sometimes...
Martin
    
    
More information about the antlr-interest
mailing list