public ConditionComponent(ISobaScript soba) : base(soba) { expression = new ConditionalExpression(this, soba, emsbuild); _crule = new Lazy <Regex>(() => new Regex ( Rule, RegexOptions.IgnorePatternWhitespace | RegexOptions.Compiled )); }
/// <summary> /// To extract conditional expression. /// </summary> protected virtual string ExtractExpression(string raw, out string expression) { string ret = string.Empty; raw = RawExp.Replace(raw, delegate(Match m) { ret = m.Groups[1].Value; return("(expression)"); }, 1); expression = ret; return(raw); }
protected void Init() { expression = new ConditionalExpression(this, soba, emsbuild); }