我想做以下事情:
我有一个将论点作为信念的初始目标,我想将其反转,以使信念的论点成为新的信念,而论点成为信念名称。
像这样的东西:
//Agent asker in project Test.mas2j
!translate(barks(dog)). //I would like to have the belief: dog(barks)
+!translate(T)<-
T =.. [A,[B],C];
.print("functor: ",A);
.print("argument: ",B);
//.print("source: ",C);
+B(A);//<- I want something like this, but it gives a syntax error.
+B. //<-this works, but it doesn't give the argument to it
所以,我的问题是,以这种方式来建立信仰有什么好处?