Exemple #1
0
        public IExpression GetMarriedWomanExpression()
        {
            IExpression married = new TerminalExpression("Married");
            IExpression julie   = new TerminalExpression("Julie");

            return(new AndExpression(married, julie));
        }
Exemple #2
0
        public IExpression GetMaleExpression()
        {
            IExpression robert = new TerminalExpression("Robert");
            IExpression john   = new TerminalExpression("John");

            return(new OrExpression(robert, john));
        }