[N3-SYNTAX] comments / missing informations

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
lup
Reply | Threaded
Open this post in threaded view
|

[N3-SYNTAX] comments / missing informations

lup
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