How create a operator tree?

Namespace rswhite4 at googlemail.com
Thu Aug 16 15:05:41 PDT 2012


Is there a simple function to create an operator tree of a term?

For example:
Term: 4 + 5 * 8
Tree:
[*, 5, 8, +, 4]

Or:
Term: 2 * 2 + 2:
Tree: [*, 2, 2, +, 2]


More information about the Digitalmars-d-learn mailing list