/simple-calculator

This is a simple calculator based on stack, which accepts + - * / ( ) as operand and integer as number

Primary LanguageJavaMIT LicenseMIT

simple-calculator

This is a simple calculator based on stack, which accepts + - * / ( ) as operand and integer as number

related url:

https://zhuanlan.zhihu.com/p/24393775

https://zhuanlan.zhihu.com/p/24556103

knowledge point:

  • Scanner in parser: scan chatacter and form token to output to parser
  • Gradle project
  • Input, InputStream, InputReader(Adapter), Bufferedreader(Decorator)
  • Adapter and Decorator
  • The effect of Interface and Abstract
  • Stack: use operand stack and number stac;