added a copy of generate prims translated to common lisp

I'm not sure quite how portable it is to use elisp as a scripting
language so I did this to make stuff more portable I guess.