aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-23 19:25:56 +0200
committerAdrian Kummerlaender2014-09-23 19:25:56 +0200
commit6390e0f7435d4a960058b2ec04115d793e1309c6 (patch)
tree99aa5766096195bd88cf3270db43fb14df0d2d0d
parent75fc5c2519b2aa88450e3293c61ccd263b0b0e0e (diff)
downloadblog.kummerlaender.eu-6390e0f7435d4a960058b2ec04115d793e1309c6.tar
blog.kummerlaender.eu-6390e0f7435d4a960058b2ec04115d793e1309c6.tar.gz
blog.kummerlaender.eu-6390e0f7435d4a960058b2ec04115d793e1309c6.tar.bz2
blog.kummerlaender.eu-6390e0f7435d4a960058b2ec04115d793e1309c6.tar.lz
blog.kummerlaender.eu-6390e0f7435d4a960058b2ec04115d793e1309c6.tar.xz
blog.kummerlaender.eu-6390e0f7435d4a960058b2ec04115d793e1309c6.tar.zst
blog.kummerlaender.eu-6390e0f7435d4a960058b2ec04115d793e1309c6.zip
Added tree visualization to SimpleParser project page
-rw-r--r--source/00_content/pages/projects/simple_parser.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/00_content/pages/projects/simple_parser.md b/source/00_content/pages/projects/simple_parser.md
index cf4ed3d..8683cb2 100644
--- a/source/00_content/pages/projects/simple_parser.md
+++ b/source/00_content/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/