浏览代码

Deployed fd2a146 with MkDocs version: 1.1.2

Gilbert Brault 5 年之前
父节点
当前提交
1bddb8e5fa
共有 5 个文件被更改,包括 1234 次插入9 次删除
  1. 348 0
      .ipynb_checkpoints/index-checkpoint.html
  2. 866 0
      resources/yamlpysketchergrammar.xhtml
  3. 1 1
      search/search_index.json
  4. 二进制
      sitemap.xml.gz
  5. 19 8
      yamlsketcher/index.html

文件差异内容过多而无法显示
+ 348 - 0
.ipynb_checkpoints/index-checkpoint.html


文件差异内容过多而无法显示
+ 866 - 0
resources/yamlpysketchergrammar.xhtml


文件差异内容过多而无法显示
+ 1 - 1
search/search_index.json


二进制
sitemap.xml.gz


+ 19 - 8
yamlsketcher/index.html

@@ -433,14 +433,25 @@
 <li><a href="#code-to-read-or-write-a-yaml-sketcher-file">Code to read or write a yaml sketcher file</a></li>
 </ul>
 <h2 id="yaml-sketcher-file-grammar">YAML sketcher file grammar</h2>
-<p>This is the wireframe grammar:</p>
-<ul>
-<li>starts with S</li>
-<li>each time you see two "embedded" rectangles, this is the text to write</li>
-<li>follow the arrows and iterate as needed</li>
-<li>end with E</li>
-</ul>
-<p><img alt="Yaml Sketcher Definition" src="../reference/yamlpysketchergrammar.svg" /></p>
+<p>Sketcher file EBNF Grammar is</p>
+<pre><code class="EBNF">Sketch::= Sketch_Name Parts
+Sketch_Name::= &quot;-&quot; &quot; &quot; &quot;name: &quot; Identifier Comment? &quot;\n&quot;
+Parts::= &quot;-&quot; &quot; &quot; &quot;parts:\n&quot; Comment? Part+
+Part::= Part_Name Shapes
+Part_Name::= INDENT &quot;-&quot; &quot; &quot; &quot;name: &quot; Identifier Comment? &quot;\n&quot; DEDENT
+Shapes::= INDENT &quot; &quot; &quot; &quot; &quot;shapes:\n&quot; Comment? Shape+ DEDENT
+Shape::= Simple | DoAction | SketchObject
+Simple::= INDENT Identifier &quot;:&quot; PyRightHandExpression Comment? &quot;\n&quot; DEDENT
+DoAction::= INDENT Identifier &quot;:&quot; Comment? &quot;\n&quot; Action DEDENT
+Action::= INDENT &quot;action:&quot; PyExpression Comment? &quot;\n&quot; DEDENT 
+Identifier::= [A-Za-z][_A-Za-z0-9]+
+Comment::= &quot;#&quot; STRING
+</code></pre>
+
+<p>Here is the railroad grammar diagram:</p>
+<p><a href="/resources/yamlpysketchergrammar.xhtml" target="_blank">Yaml Sketcher Definition</a>
+<iframe src="/resources/yamlpysketchergrammar.xhtml" style="border:none;height:50vh;width:100vw;"></p>
+<p><small><a href="https://bottlecaps.de/rr/ui"target="_blank">[Built thanks]</a></small></p>
 <h2 id="libraries-pysketcher-object-creation-styles-transform">Libraries, Pysketcher Object creation, Styles, Transform</h2>
 <h3 id="libraries">Libraries</h3>
 <p>The libraries token defined in the grammar is</p>