Only python
Steps:
- I trying to add a data on code making a binary tree (Was made).
- Now im trying to add a expression tree, i will give a full expression and code will interpret it, and make a expression tree (Was made, but code only recognize pair number of expressions, and with specified numbers and operator, later i will made it interactive)
- Made it Interactive, independent of operators and numbers
- Continue coding it Interactive, recognize sub-expressions (broke a expression in minor parts) in a fully expression
- To made it, i have a idea to give a expression splited by brackets, and try to force the code in recognize this brackets and broke the expressions in small expressions
- Ex.:
- A expression -> [3 * 5] + 4 - [8 - 8], on code will be recognize how X = '3 * 5', Z = 'X + 4 - Y' and Y = '8 - 8'