Example #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;
 }
Example #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;
 }