Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator, IVariableValueResolver compile_time_constants)
     : this(text, exec_func_evaluator, compile_time_constants, true)
 {
 }
Exemplo n.º 5
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator) : this(text, exec_func_evaluator, null, true)
 {
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 9
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator, IVariableValueResolver compile_time_constants)
     : this(text, exec_func_evaluator, compile_time_constants, true)
 {
 }
Exemplo n.º 10
0
 public Parser(string text, ExecFuncEvaluator exec_func_evaluator)
     : this(text, exec_func_evaluator, null, true)
 {
 }