A Lisp Production System for Translation into Roman Numerals
(defun to-roman () (let ((n nil))(loop (cond
((and (numberp n)(> n 0)(< n 4))
((and (numberp n)(= n 4))
(format t "IV")(decf n 4))
((and (numberp n)(< n 9))
((and (numberp n)(> n 9)(< n 40))
(t (format t "cannot handle ~S~%" n)(setq n nil))