Exemplo n.º 1
0
 public Expression(IInfixToPostfix converterObject, string infix) : this(infix)
 { this.converter = converterObject; }
Exemplo n.º 2
0
 public Expression()
 {
     this.converter = new InfixToPostfix(Infix);
 }
Exemplo n.º 3
0
 public Expression(IInfixToPostfix converterObject)
 {
     this.converter = converterObject;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Calls instance of converter object : IInfixToPostfix
 /// Used to pass Infix prop to converter and then update Postfix prop
 /// </summary>
 /// <param name="verbosemode">if verbosemode == true, infix to postfix conversion process is printed to console</param>
 public void ConvertToPostfix(IInfixToPostfix converterObj, bool verbosemode = false)
 {
     converterObj.VerboseMode = verbosemode;
     Postfix = converterObj.Convert(Infix);
 }