Vafo / calculator-task

0 stars 0 forks source link

calculator-task

Brief

This project implements basic infix calculator, with extendability in mind. Unary and binary operators and functions are supported.

Contents

Usage

postfix_converter_t Class
convert(const std::string& in_str) - converts infix arithmetic expression to evaluable postfix_expr_t
Throws, if there is syntax error (e.g. misplaced operators, brackets etc) or unknown token is present
postfix_expr_t
evaluate() - evaluates expression

Future Work

A refactoring is urgently needed in