Commit 10895b39 authored by Chris Jewell's avatar Chris Jewell
Browse files

Replaced svg with mermaid diagram.

parent 4874ff86
Pipeline #275 passed with stage
in 4 minutes and 53 seconds
sphinx>2
sphinx_rtd_theme>=0.3.1
sphinxcontrib_mermaid>=0.3.1
numpy
tensorflow>=1.14
tensorflow-probability>=0.7.0
......
......@@ -38,6 +38,7 @@ master_doc = 'index'
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.inheritance_diagram',
'sphinx_rtd_theme',
'sphinxcontrib.mermaid'
]
# Add any paths that contain templates here, relative to this directory.
......
......@@ -10,12 +10,21 @@ GEM parsing framework closely follows the source-to-source translation ideas out
in outlined in :ref:`Figure 1 <parsechain>`.
.. _parsechain:
.. figure:: parsechain.svg
:scale: 60%
:alt: GEM parse chain
Figure 1: The GEM parse chain showing the main stages of the source-to-source translation pipeline.
.. mermaid::
:alt: GEM parse chain diagram
:align: center
:caption: Figure 1: The GEM parse chain showing the main stages of the source-to-source translation pipeline.
graph LR;
gemlang --> lex(Lexical<br />analysis);
lex --parse tree--> syntax(Syntactic<br />analysis);
syntax --AST--> semantic(Semantic<br />analysis);
semantic --AST--> code(Code<br />generator);
symboltable[Symbol<br />Table] --> semantic
symboltable --> code
code --> Python
Lark --> lex
Lark --> syntax
Lexical and Syntactic Analysis
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment