W3C home > Mailing lists > Public > public-cwm-talk@w3.org > January to March 2009

[N3-SYNTAX] comments / missing informations

From: luc peuvrier at home <lc.pvrr@orange.fr>
Date: Sun, 1 Feb 2009 19:58:35 +0100
Message-ID: <EA6E8F311A564CF792077AB1F82FCF47@LUCIO>
To: <public-cwm-talk@w3.org>
Cc: "++jean marc vanel" <jeanmarc.vanel@gmail.com>
Hi,

I used http://www.w3.org/DesignIssues/Notation3 to create a n3 file parser.

I do not found in whitespace paragraph any description of comment.

I described like this for my parser grammar definition file:
  ws :
     | wsElt
     | ws wsElt
     ;

  wsElt : [\u0000- ]
        | '#' chars_in_comment '\n'
        ; 

  chars_in_comment :
                   | [ -\uFFFF]
                   | chars_in_comment [ -\uFFFF]
                   ;
In BNF it can look like:

  whitespace
      ([\u0000-\u0020]|(#.*\n))*

Best regards
Luc Peuvrier
Received on Monday, 2 February 2009 07:43:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 2 February 2009 07:44:02 GMT