Options
All
  • Public
  • Public/Protected
  • All
Menu

prn-calculator-cli

Index

Variables

Const gateway

gateway: Gateway = new Gateway(rl, rpnCalculator)

Const rl

rl: Interface = readline.createInterface({input: process.stdin,output: process.stdout})

Const rpnCalculator

rpnCalculator: RPNCalculator = new RPNCalculator(config)

Functions

Const isNumber

  • isNumber(param: any): boolean

Object literals

Const config

config: object

operations

operations: (Sum | Substract | Mltiply | Sum)[] = [new Sum(),// just to show that we can redefine the operation symbolnew Substract('-'),new Multiply(),new Divide()]

Generated using TypeDoc