I would like to create a tree structure to explicitly represent equations in a parse tree.
for example 6 = 4 + 2 is represented in a parse tree as
/ | \ =
| / | \
6 +
| |
4 2
How do I create a tree structure in c# that can function with tags like this?
For more information about parse trees see here : [link text][1]
for more information about BNF : [link text][2]
[1]: https://en.wikipedia.org/wiki/Parse_tree
[2]: https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form
↧