W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > April 2013

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

From: Pablo Nieto Caride <pablo.nieto@linguaserve.com>
Date: Tue, 16 Apr 2013 11:30:14 +0200
To: "'Jirka Kosek'" <jirka@kosek.cz>
Cc: <public-multilingualweb-lt@w3.org>
Message-ID: <052801ce3a85$000bae70$00230b50$@linguaserve.com>
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)
charClass = charClassEsc / charClassExpr / wildcardEsc (RFC's)

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

> 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 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:07 UTC