I think I would like the Lisp part of the code generator to take the following form...
(jdeftype jstring "String")
(jdeftype jbool "bool")
(jfunc myfunc "private void" "MyJsFunction" ((jstring strarg) (jbool boolarg))
When it comes to passing arguments in I think a script tag may look like this...
I don't know if this will work. I don't know if it's even sensible. I do know it is something I should at least try.
Debug a general code generator that has many useful base object types and you should be able to build with those objects fairly quickly.