Update grammar to current Turtle grammar
authorGavin Carothers <gavin@carothers.name>
Sat, 09 Mar 2013 07:40:14 -0800
changeset 634 0a564bf5fc34
parent 633 adf902059b66
child 635 05d71999edcd
Update grammar to current Turtle grammar
trig/trig-bnf.html
trig/trig.bnf
--- a/trig/trig-bnf.html	Sat Mar 09 07:35:56 2013 -0800
+++ b/trig/trig-bnf.html	Sat Mar 09 07:40:14 2013 -0800
@@ -60,11 +60,11 @@
     <td>::=</td>
     <td><a href='#grammar-production-subject'>subject</a> <a href='#grammar-production-predicateObjectList'>predicateObjectList</a> <code>| </code> <a href='#grammar-production-blankNodePropertyList'>blankNodePropertyList</a> <a href='#grammar-production-predicateObjectList'>predicateObjectList</a>?</td>
 </tr>
-            <tr id="grammar-production-predicateObjectList" data-grammar-original="[7] predicateObjectList ::= verb objectList (&quot;;&quot; (predicateObjectList)?)*" data-grammar-expression="(&#x27;,&#x27;, [(&#x27;id&#x27;, &#x27;verb&#x27;), (&#x27;id&#x27;, &#x27;objectList&#x27;), (&#x27;*&#x27;, (&#x27;,&#x27;, [(&quot;&#x27;&quot;, &#x27;;&#x27;), (&#x27;?&#x27;, (&#x27;id&#x27;, &#x27;predicateObjectList&#x27;))]))])" >
+            <tr id="grammar-production-predicateObjectList" data-grammar-original="[7] predicateObjectList ::= verb objectList (&#x27;;&#x27; (verb objectList)? )*" data-grammar-expression="(&#x27;,&#x27;, [(&#x27;id&#x27;, &#x27;verb&#x27;), (&#x27;id&#x27;, &#x27;objectList&#x27;), (&#x27;*&#x27;, (&#x27;,&#x27;, [(&quot;&#x27;&quot;, &#x27;;&#x27;), (&#x27;?&#x27;, (&#x27;,&#x27;, [(&#x27;id&#x27;, &#x27;verb&#x27;), (&#x27;id&#x27;, &#x27;objectList&#x27;)]))]))])" >
     <td>[7]</td>
     <td><code>predicateObjectList</code></td>
     <td>::=</td>
-    <td><a href='#grammar-production-verb'>verb</a> <a href='#grammar-production-objectList'>objectList</a> ('<code class='grammar-literal'>;</code>' <a href='#grammar-production-predicateObjectList'>predicateObjectList</a>?)<code class='grammar-star'>*</code></td>
+    <td><a href='#grammar-production-verb'>verb</a> <a href='#grammar-production-objectList'>objectList</a> ('<code class='grammar-literal'>;</code>' (<a href='#grammar-production-verb'>verb</a> <a href='#grammar-production-objectList'>objectList</a>)?)<code class='grammar-star'>*</code></td>
 </tr>
             <tr id="grammar-production-objectList" data-grammar-original="[8] objectList ::= object ( &quot;,&quot; object )*" data-grammar-expression="(&#x27;,&#x27;, [(&#x27;id&#x27;, &#x27;object&#x27;), (&#x27;*&#x27;, (&#x27;,&#x27;, [(&quot;&#x27;&quot;, &#x27;,&#x27;), (&#x27;id&#x27;, &#x27;object&#x27;)]))])" >
     <td>[8]</td>
--- a/trig/trig.bnf	Sat Mar 09 07:35:56 2013 -0800
+++ b/trig/trig.bnf	Sat Mar 09 07:40:14 2013 -0800
@@ -9,7 +9,6 @@
 
 [3] directive ::= prefixID 
  | base | sparqlPrefix | sparqlBase
-
 [4] prefixID ::= '@prefix' PNAME_NS IRIREF "."
  
 [5] base ::= '@base' IRIREF "."
@@ -20,7 +19,7 @@
 [6] triples ::= subject predicateObjectList |
 blankNodePropertyList predicateObjectList? 
  
-[7] predicateObjectList ::= verb objectList (";" (predicateObjectList)?)* 
+[7] predicateObjectList ::= verb objectList (';' (verb objectList)? )*
  
 [8] objectList ::= object ( "," object )*