Example #1
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator, IVariableValueResolver compile_time_constants, bool consume_whole_text)
 {
     m_Tokenizer            = new Tokenizer.Tokenizer(text);
     m_ExecFuncEvaluator    = exec_func_evaluator;
     m_CompileTimeConstants = compile_time_constants == null ? (IVariableValueResolver) new VariableValueResolver() : compile_time_constants;
     m_ConsumeWholeText     = consume_whole_text;
 }
Example #2
0
 // variable_name is allowed to be null
 public FuncExec(ExecFuncEvaluator evaluator, string variable_name, int exec_period_secs, Expression command, Expression workdir)
     : base(command, workdir)
 {
     m_Evaluator      = evaluator;
     m_VariableName   = variable_name;
     m_ExecPeriodSecs = exec_period_secs;
 }
 // variable_name is allowed to be null
 public FuncExec(ExecFuncEvaluator evaluator, string variable_name, int exec_period_secs, Expression command, Expression workdir)
     : base(command, workdir)
 {
     m_Evaluator = evaluator;
     m_VariableName = variable_name;
     m_ExecPeriodSecs = exec_period_secs;
 }
Example #4
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator, IVariableValueResolver compile_time_constants)
     : this(text, exec_func_evaluator, compile_time_constants, true)
 {
 }
Example #5
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator) : this(text, exec_func_evaluator, null, true)
 {
 }
Example #6
0
 public CompiledExpressionCache(ExecFuncEvaluator exec_func_evaluator, IVariableValueResolver compile_time_constants, int max_size)
 {
     m_Cache                = new Cache <string, CompiledExpression>(CompileExpression, max_size);
     m_ExecFuncEvaluator    = exec_func_evaluator;
     m_CompileTimeConstants = compile_time_constants;
 }
 public CompiledExpressionCache(ExecFuncEvaluator exec_func_evaluator, IVariableValueResolver compile_time_constants, int max_size)
 {
     m_Cache = new Cache<string, CompiledExpression>(CompileExpression, max_size);
     m_ExecFuncEvaluator = exec_func_evaluator;
     m_CompileTimeConstants = compile_time_constants;
 }
Example #8
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator, IVariableValueResolver compile_time_constants, bool consume_whole_text)
 {
     m_Tokenizer = new Tokenizer.Tokenizer(text);
     m_ExecFuncEvaluator = exec_func_evaluator;
     m_CompileTimeConstants = compile_time_constants==null ? (IVariableValueResolver)new VariableValueResolver() : compile_time_constants;
     m_ConsumeWholeText = consume_whole_text;
 }
Example #9
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator, IVariableValueResolver compile_time_constants)
     : this(text, exec_func_evaluator, compile_time_constants, true)
 {
 }
Example #10
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator)
     : this(text, exec_func_evaluator, null, true)
 {
 }