W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

RE: different AST's

From: Howard Katz <howardk@fatdog.com>
Date: Fri, 16 May 2003 16:24:14 -0700
To: <public-qt-comments@w3.org>
Message-ID: <NFBBKEMEJKFJGCPOOKHCAEDEDFAA.howardk@fatdog.com>

Oops, the last production of the second tree should read "integerLiteral"
and not "integerExpr"
Howard

> -----Original Message-----
> From: Howard Katz [mailto:howardk@fatdog.com]
> Sent: Friday, May 16, 2003 4:15 PM
> To: public-qt-comments@w3.org
> Subject: different AST's
>
> Why are the AST's emitted by the online grammar checkers at the
> XML Query website different from those produced by walking the
> formal BNF's manually? The former omit a lot of the intermediate
> productions. How come? For example using the XPath 2.0 grammar
> checker at http://www.w3.org/2003/05/applets/xpathApplet.html, if I enter

    [ snip ... ]

>
>                  stepExpr
>
>                        filterStep
>
>                             primaryExpr         <- and this
>
>                                 literalExpr              <- and this
>
>                                     numericExpr           <- and this
>
>                                          integerExpr

   ...
Received on Friday, 16 May 2003 20:43:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT