Processes termhint objects into regular hint objects.
Essentially this function is an interpreter for terms containing calls of cons and binary-append, as well as quoted and pseudo-quoted objects (see below), which are both treated the same. If any other functions or any variable atoms are present, it produces an error.
This capability is intended to be enough to process backtick expressions where all the commas are accompanied by hq (or other pseudoquote) calls; e.g.:
(let ((my-a (foo bar baz))) (process-termhint `'(:use my-theorem (a ,(hq my-a))))) => (:USE MY-THEOREM (A (FOO BAR BAZ)))
Process-termhint is always called with
(table termhint 'quotesyms) ;; show the list of quotesyms (cdr (assoc 'quotesyms (table-alist termhint world))) ;; access the list of quotesyms (termhint-add-quotesym my-quotesym) ;; add a new quotesym