[sc34wg3] TMQL: Grammar broken II

Robert Barta rho at devc.at
Mon Feb 23 14:31:22 EST 2009


On Thu, Dec 04, 2008 at 01:42:54PM +0100, Lars Heuer wrote:
> Found another bug in the grammar; according to "4.7 Composite Content"
> this is a valid TMQL expression:
> 
>      // person -- // evildoer
> 
> 
> But it is impossible to accept the expression according to the
> grammar. If the entry point is "path-expression", there is no way to
> accept the "--" and the other path expression.

That's correct. But that is the same as saying

  If the entry point is "constant" then 2 + 3 is
  not parseable.

For the above I have

   content -> content   '--'  content              [23]
           -> path-expression '--' content         [N]
           -> path-expression '--' path-expression [N]
           -> ....                                 [X] [W] ....
           -> // person -- // evildoer

Please double-check.

Thanks for looking so deeply into the language. It proves that there
is at least one good person out there.

\rho


More information about the sc34wg3 mailing list