Beispiel #1
0
 public ReversedPolishCalculator(TypeObserverManager _typeMan, Queue <string> reversePolishNotation)
 {
     this.stack     = new Stack <double>();
     this.error     = "";
     this.typeMan   = _typeMan;
     this.dllMan    = _typeMan.dllMan;
     this.typesList = _typeMan.typesList;
     this.rpn       = reversePolishNotation;
 }
Beispiel #2
0
 public InfixParser(List <string> _inputToInfix, TypeObserverManager _typeMan)
 {
     this.stack = new Stack <string>();
     this.queue = new Queue <string>();
     this.error = "";
     //parsed input
     this.inputToInfix = _inputToInfix;
     this.typeMan      = _typeMan;
     this.dllMan       = _typeMan.dllMan;
 }
Beispiel #3
0
 public CalculationController(IHostingEnvironment _environment)
 {
     this.environment = _environment;
     this.typeMan     = new TypeObserverManager(environment);
 }
Beispiel #4
0
 public InputParser(TypeObserverManager _typeMan)
 {
     this.typeMan = _typeMan;
 }