aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-23 19:25:56 +0200
committerAdrian Kummerlaender2014-09-23 19:25:56 +0200
commit3c421bc4838ee72f447d121dacce6e5bb51fe59b (patch)
tree794366da98f08ca40527dab510abec15c6c909cb /pages
parenta8203c482eebac7b25bcfa0da80f5170ada0731b (diff)
downloadblog_content-3c421bc4838ee72f447d121dacce6e5bb51fe59b.tar
blog_content-3c421bc4838ee72f447d121dacce6e5bb51fe59b.tar.gz
blog_content-3c421bc4838ee72f447d121dacce6e5bb51fe59b.tar.bz2
blog_content-3c421bc4838ee72f447d121dacce6e5bb51fe59b.tar.lz
blog_content-3c421bc4838ee72f447d121dacce6e5bb51fe59b.tar.xz
blog_content-3c421bc4838ee72f447d121dacce6e5bb51fe59b.tar.zst
blog_content-3c421bc4838ee72f447d121dacce6e5bb51fe59b.zip
Added tree visualization to SimpleParser project page
Diffstat (limited to 'pages')
-rw-r--r--pages/projects/simple_parser.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/pages/projects/simple_parser.md b/pages/projects/simple_parser.md
index cf4ed3d..8683cb2 100644
--- a/pages/projects/simple_parser.md
+++ b/pages/projects/simple_parser.md
@@ -11,7 +11,13 @@ This application marks the first steps in C++ I took a couple of years back and
* Calculating terms with basic operators while respecting the priority of each operator
* Support for parentheses
* Support for alphabetic constants
-* Export of the expression tree as [Graphviz] dot for visualization
+* Export of the expression tree as [Graphviz] `dot` for visualization
+
+## Visualization
+
+The ability to export the internal binary expression tree resulting from the parsed term as [Graphviz] `dot` is useful for both visualization and debugging purposes. In the following image you can see the depiction of the tree resulting from the arbitrarily chosen term `2.5*(2+3-(3/2+1*(21+11+(5*2))))`:
+
+![Visualization of the parsed tree using Graphviz](http://static.kummerlaender.eu/media/parser_tree.png){: .full}
[Graphviz]: http://www.graphviz.org/
[Github]: https://github.com/KnairdA/SimpleParser/