Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GEM
gem
Commits
10895b39
Commit
10895b39
authored
Nov 05, 2019
by
Chris Jewell
Browse files
Replaced svg with mermaid diagram.
parent
4874ff86
Pipeline
#275
passed with stage
in 4 minutes and 53 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/requirements.txt
View file @
10895b39
sphinx>2
sphinx_rtd_theme>=0.3.1
sphinxcontrib_mermaid>=0.3.1
numpy
tensorflow>=1.14
tensorflow-probability>=0.7.0
...
...
doc/source/conf.py
View file @
10895b39
...
...
@@ -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.
...
...
doc/source/developer/gemlang.rst
View file @
10895b39
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment