You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,8 +202,8 @@ fun main() {
202
202
203
203
By default, the library does the following steps to evaluate an expression:
204
204
1. Tokenizing - splitting the expression into a list of units (operations, numbers, constants, function calls, etc.)
205
-
2. Converting the expression from [infix](https://en.wikipedia.org/wiki/Infix_notation) to [postifx notation](https://en.wikipedia.org/wiki/Reverse_Polish_notation).
206
-
3. Evaluating the postfix expression.
205
+
2. Converting the expression from [infix notation](https://en.wikipedia.org/wiki/Infix_notation) to [abstract syntax tree](https://en.wikipedia.org/wiki/Abstract_syntax_tree).
206
+
3. Evaluating the abstract syntax tree.
207
207
208
208
In case you have an expression with variables, it might make sense to preprocess the expression (do steps 1 and 2 in advance) to improve the performance:
0 commit comments