[N3-SYNTAX] comments / missing informations

View: New views
1 Messages — Rating Filter:   Alert me  

[N3-SYNTAX] comments / missing informations

by lup :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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