Ejemplo n.º 1
0
 /// <summary>
 /// Handles the AST node visit.
 /// </summary>
 /// <param name="astNode">AST node.</param>
 public override void Visit(DomainPredicatesAstNode astNode)
 {
     foreach (var predicateElem in astNode.PredicatesList)
     {
         Predicate newPredicate = new Predicate(predicateElem.Name);
         predicateElem.Arguments.TypedIdentifiers.ForEach(termElem => newPredicate.Terms.Add(new DefinitionTerm(termElem.Item1, termElem.Item2.Split(';'))));
         DomainData.Predicates.Add(newPredicate);
     }
 }
Ejemplo n.º 2
0
 public virtual void Visit(DomainPredicatesAstNode node)
 {
 }