Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
arpeggio-gm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
arpeggio-gm
Commits
e0a3a087
Commit
e0a3a087
authored
Oct 23, 2014
by
Igor Dejanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs update. Parser model graph explanation.
parent
62eeac25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
index.rst
docs/index.rst
+11
-1
No files found.
docs/index.rst
View file @
e0a3a087
...
...
@@ -151,11 +151,21 @@ rendered as image using one of available dot viewer software or transformed to a
$ dot -Tpng -O calc_parser_model.dot
After this command you will get ``calc_parser_model.dot.png`` file which can be opened in any ``png`` image
viewer. This i
mage shows the graph representing the parser model which looks like this
:
viewer. This i
s how it looks like
:
.. image:: https://raw.githubusercontent.com/igordejanovic/Arpeggio/master/docs/images/calc_parser_model.dot.png
:height: 600
Each node in this graph is a parsing expression.
Nodes are labeled by the type name of the parsing expression.
If node represents the rule from the grammar the label is of the form ``<rule_name>=<PEG type>`` where
``rule_name`` it the name of the grammar rule.
The edges connect children expressions. The labels on the edges represent the order in which the graph will be
traversed during parsing.
Arpeggio will start from the root node and traverse the parser model graph consuming all matched input.
When all root node branches are traversed the parsing is done.
Grammars written in PEG notations
---------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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