- Home /
C# Tree Structure (stack, queue, any suggestions are welcome)
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
<assign>
/ | \
<id> = <expr>
| / | \
6 <id> + <id>
| |
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 for more information about BNF : link text
Comment