RE: [Action-484] Create an ABNF based on http://lists.w3.org/Archives/Public/public-multilingualweb-lt/2013Apr/0047.html

Hi Jirka, all,

I almost have the grammar finished but now I have doubts regarding the syntax. I've run into two different notation: the W3C one, http://www.w3.org/TR/xmlschema-2/#nt-charClassEsc, http://www.w3.org/TR/speech-grammar/#AppD (this one seems to be more of a EBNF), and the RFC one http://tools.ietf.org/html/rfc5234, so my question is, which one is correct or valid? 
charClass   ::= charClassEsc | charClassExpr | WildcardEsc (W3C's)
or   
charClass = charClassEsc / charClassExpr / wildcardEsc (RFC's)

I assume both are valid, in that case do we have any preference? 

Cheers,
Pablo.
---------------------------------------------------------------------------------------------------
> I’m going to try to create an ABNF based on 
> http://www.w3.org/TR/xmlschema-2/#nt-charGroup as Jirka suggested. 
> Since I’m not very familiar with ABNF grammar any kind of help would 
> be appreciated, I’ll keep you updated with my progress.

I think that idea is simple. As a start take all productions starting from

[11]    charClass    ::=    charClassEsc | charClassExpr | WildcardEsc

then remove those which describe constructs we don't want to support in our subset of regular expression.

    Jirka

--
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Received on Tuesday, 16 April 2013 09:30:43 UTC