+ 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😊🤔☺️

8th Nov 2018, 11:08 AM
Soniya Kulkarni
Soniya Kulkarni - avatar
2 Respuestas
+ 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.
8th Nov 2018, 12:26 PM
Anya
Anya - avatar
+ 3
Thanks Anya
8th Nov 2018, 3:01 PM
Soniya Kulkarni
Soniya Kulkarni - avatar