1 2 3 4 5 6 7 8 9 10 11
:- module(command, [getCommand/2]). % functions for parsing a list of words into a recognised command getCommand(L,C) :- C =.. L. % placeholder