Ejemplo n.º 1
0
        public ConditionComponent(ISobaScript soba)
            : base(soba)
        {
            expression = new ConditionalExpression(this, soba, emsbuild);

            _crule = new Lazy <Regex>(() => new Regex
                                      (
                                          Rule,
                                          RegexOptions.IgnorePatternWhitespace |
                                          RegexOptions.Compiled
                                      ));
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 protected void Init()
 {
     expression = new ConditionalExpression(this, soba, emsbuild);
 }