コード例 #1
0
 public EBNFMathExpressionCompileTestsInfix()
 {
     this.mathCompiler = new MathCompilerEBNF();
 }
コード例 #2
0
 public MathCalculator(IContext context, IMathCompiler mathCompiler)
 {
     this.mathCompiler = mathCompiler;
     this.Context      = context;
 }
コード例 #3
0
 public MathCalculator(IContext context)
 {
     this.Context      = context;
     this.mathCompiler = new MathCompilerEBNF();
 }
コード例 #4
0
 public MathCalculator(IMathCompiler mathCompiler)
 {
     this.mathCompiler = mathCompiler;
     this.Context      = new DefaultContext();
 }
コード例 #5
0
 public MathCalculator()
 {
     this.Context         = new DefaultContext();
     this.mathCompiler    = new MathCompilerEBNF();
     this.mathInterpreter = new MathInterpreter();
 }