From 910b6357a2f82a854546e260e669340dba40e2f2 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Sun, 26 Nov 2023 13:39:59 -0500 Subject: [PATCH] Updated README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a09d091..070865f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,9 @@ 2. If there are any parantheses, replace the parantheses with the result of the sub-expression. 3. Evaluate the overall expression (which should no longer have any parantheses) -Rather than building a tree from the expression (which is the recommended approach), I have opted to perform the substitutions in-place. This means that the result of an operation replaces the operation itself. The reason I chose to do this, is that my parsing algorithm considers everything inside parantheses as a single token. Therefore, it is fairly easy to replace this token with the result of the expression within the parantheses. +Rather than building a tree from the expression (which is the recommended approach), I have opted to perform the substitutions in-place. This means that the result of an operation replaces the operation itself. + +The reason I chose to do this, is that my parsing algorithm considers everything inside parantheses as a single token. Therefore, it is fairly easy to replace this token with the result of the expression within the parantheses. ## Features - Order of operations