Ejemplo n.º 1
0
 protected Rule()
 {
     _builder = new RuleBuilder();
     _lhsExpression = new LeftHandSideExpression(_builder);
     _rhsExpression = new RightHandSideExpression(_builder);
     _definition = new Lazy<IRuleDefinition>(BuildDefinition);
 }
Ejemplo n.º 2
0
 protected Rule()
 {
     _builder       = new RuleBuilder();
     _lhsExpression = new LeftHandSideExpression(_builder);
     _rhsExpression = new RightHandSideExpression(_builder);
     _definition    = new Lazy <IRuleDefinition>(BuildDefinition);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns expression builder for rule's left-hand side (conditions).
        /// </summary>
        /// <returns>Left hand side expression builder.</returns>
        protected ILeftHandSideExpression When()
        {
            var builder    = _builder.LeftHandSide();
            var expression = new LeftHandSideExpression(builder, _symbolStack);

            return(expression);
        }