Arithmetic evaluation: Difference between revisions

m
"binary relations" -> "binary operators" (You can call addition, etc. "operators", "operations", or "functions", but certainly not "relations".)
(Formed bullet list of task requirements.)
m ("binary relations" -> "binary operators" (You can call addition, etc. "operators", "operations", or "functions", but certainly not "relations".))
Line 6:
* The AST must be used in evaluation, also, so the input may not be directly evaluated (e.g. by calling eval or a similar language feature.)
* The expression will be a string or list of symbols like "(1+3)*7".
* The four symbols + - * / must be supported as [[wp:Binary_relation|binary relations]]operators with conventional precedence rules.
* Precedence-control parentheses must also be supported.
 
845

edits