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

Oliver Zeigermann oliver at zeigermann.de
Sun Jun 17 09:24:42 PDT 2007


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