项目作者: gilmanjo

项目描述 :
A C++-based expression tree solution to an arithmetic parser
高级语言: C++
项目地址: git://github.com/gilmanjo/arithmetic-calculator.git
创建时间: 2018-06-12T01:23:38Z
项目社区:https://github.com/gilmanjo/arithmetic-calculator

开源协议:

下载


arithmetic-calculator

A C++-based expression tree solution to an arithmetic parser.

About

Goal: To create and evaluate an arithmetic parser without use of Shunting Yard algorithm.

Solution: Implement object-oriented-heavy approach using Composite, Interpreter, Builder, Visitor, and Fascade design patterns.

Overall TODOs:

  • implement memory-critical destructors
  • implement strict user input handling
  • implement subtraction and division operators
  • unary operators
  • formal function and class headers for entire project
  • perhaps consolidate the expression and builder composites

    Usage

    1. arithmetic_calculator.cpp [expression]

    or use loop when run w/o any c-line args.
    Only acceptable input for expression is * + ( ) [0-9]+
    max 9999 per literal, all else is undefined.