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; }
// 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; }
public Parser(string text, ExecFuncEvaluator exec_func_evaluator, IVariableValueResolver compile_time_constants) : this(text, exec_func_evaluator, compile_time_constants, true) { }
public Parser(string text, ExecFuncEvaluator exec_func_evaluator) : this(text, exec_func_evaluator, null, true) { }
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; }
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; }