答案 0 :(得分:0)
在ISO Prolog中,您可以执行以下操作:
{
"title": "WASD arrow Keys toggled by Capslock",
"rules": [
(insert code here)
]
}
对我来说很正确:
halfadd(X, Y, Z, C) :-
Z is X xor Y,
C is X /\ Y.
fulladd(X, Y, C, Z, D) :-
halfadd(X, Y, H, J),
halfadd(H, C, Z, K),
D is J \/ K.