Added the function setentry.
Made the entry function take a type argument and return only a RIGHT side
expression.
Made the functions setentry, entry, entrydefined and undefineentry be
implemented by the language bindings.