OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

search-ws message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [search-ws] Possible type in BNF?


Farrukh,

> The following (first) row in BNF does not quite seem right:
> 
> sortedQuery
> ::=
> prefixAssignment sortedQuery
> | scopedClause ['sortby' sortSpec]

The BNF in the document is correct. What is is allowing is
multiple prefixAssignments before the scopedClause.

A couple of years ago I wrote a CQL parser (using
Boost.Spirit which admittedly uses a different notation)
and it worked out okay. If anyone's interested, my
Boost.Spirit notation for the above is as follows:

    sortedQuery = *prefixAssignment >> scopedClause;

Which I think is perhaps a little clearer -- it is
saying that a sortedQuery is any number of prefixAssignments
followed by a scopedClause. (I never did get around to
implementing the sortby stuff.)

I hope that helps,

Ashley.
-- 
Ashley Sanders               a.sanders@manchester.ac.uk
Copac http://copac.ac.uk A Mimas service funded by JISC


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]