+ 4
Expression trees are a nice feature, but what are its practical uses? Can they be used for some sort of code??
If your answer is yes and you think expression trees are used please explain me by coding in data structure and also give some applications in which we use expression tree😊🤔☺️
2 odpowiedzi
+ 5
yes they can. You could do it a expression evaluator.
Example: https://www.geeksforgeeks.org/expression-tree/
Seems that you can say that expression tree is a arithmetic syntax tree or is similar .
In Introduction of computation theory by Michael Sipser the author introduces syntax trees with a arithmetic one.
Syntax tree are a extract meaning of a code that will be compiled using a process called lexical analysis.
+ 3
Thanks Anya