Ejemplo n.º 1
0
        private static QuestionNode BuildWhereDidTree()
        {
            var whereDid = new QuestionNode("Where did", WordType.Other, Tense.Base);

            var subject = new QuestionNode("<subject>", WordType.Subject, Tense.Base);

            subject.IsPlaceholder = true;

            var verb = new QuestionNode("<verb>", WordType.Verb, Tense.Base);

            verb.IsPlaceholder = true;

            var obj = new QuestionNode("<object>", WordType.Object, Tense.Base);

            obj.IsPlaceholder = true;

            verb.AddNode(obj);
            subject.AddNode(verb);
            whereDid.AddNode(subject);

            return(whereDid);
        }
Ejemplo n.º 2
0
 public QuestionTree(QuestionNode root)
     : base(root)
 {
 }