Beispiel #1
0
        public static IExpression getMarriedWomanExpression()
        {
            IExpression julie   = new TerminalExpression("Julie");
            IExpression married = new TerminalExpression("Married");

            return(new AndExpression(julie, married));
        }
Beispiel #2
0
        public static IExpression GetMarriedExpression()
        {
            IExpression jill    = new TerminalExpression("jill");
            IExpression married = new TerminalExpression("married");

            return(new AndExpression(jill, married));
        }
Beispiel #3
0
        public static IExpression getMaleExpression()
        {
            IExpression rober = new TerminalExpression("Robert");
            IExpression john  = new TerminalExpression("John");

            return(new OrExpression(rober, john));
        }
Beispiel #4
0
        public static IExpression GetMaleExpression()
        {
            IExpression rob  = new TerminalExpression("rob");
            IExpression jack = new TerminalExpression("jack");

            return(new OrExpression(rob, jack));
        }