[antlr-interest] Generating XML from a antlr grammer!

Oliver Zeigermann oliver at zeigermann.de
Sun Jun 17 09:39:38 PDT 2007


Here it is now:

http://www.antlr.org/wiki/display/ANTLR3/6.+Advanced+processing

Please check and make corrections as necessary. Remember it is a Wiki ;)

Cheers

Oliver

2007/6/17, Oliver Zeigermann <oliver at zeigermann.de>:
> Hi Johannes!
>
> I am currenly adding your idea to the tutorial.
>
> Having the scope open in element is necessary as both startTag and
> endTag need access to *the same* scope.
>
> Oliver
>
> 2007/6/17, Johannes Luber <jaluber at gmx.de>:
> > Oliver Zeigermann wrote:
> > > Hi Johannes!
> > >
> > > To me your solution looks nice. Maybe the error reporting could be
> > > more beautiful ;)
> > >
> > > Anyway, the only thing I could find was where the scope begins (should
> > > be element in my opinion) and the check for equality in endTag.
> >
> > That explains why the solution didn't work as I expected. Was the check
> > for equality the only mistake I made (was in the C# mindset at that
> > time) or is the addition of ElementScope to element truly necessary?
> > After all you don't do anything in element with this scope.
> >
> > Otherwise, did you add the improved grammar to your wiki tutorial?
> >
> > Best regards,
> > Johannes Luber
> >
>


More information about the antlr-interest mailing list