public static void Rule(ListBody lhs, ListItems listItems, OptionalListTail optionalListTail) { CodeTerm tail; if (optionalListTail.CodeTerm != null) { tail = optionalListTail.CodeTerm; } else { tail = new CodeCompoundTerm(CodeFunctor.NilFunctor); } lhs.CodeList = new CodeList(listItems.CodeTerms, tail); }
public static void Rule(OptionalListTail lhs) { }
public static void Rule(OptionalListTail lhs, ListTail listTail) { lhs.CodeTerm = listTail.CodeTerm; }
public static void Rule(ListBody lhs, ListItems listItems, OptionalListTail optionalListTail) { var tail = optionalListTail.CodeTerm ?? new CodeCompoundTerm(CodeFunctor.NilFunctor); lhs.CodeList = new CodeList(listItems.CodeTerms, tail); }