libera/#climacs - IRC Chatlog
Search
11:50:44
beach
scymtym: I am confused. If I ask to parse (DEFUN FOO (X)), a node of kind :VARIABLE-NAME is asked for. Then later the library calles NODE-KIND with the node that was created, and I am not sure what to return. But if I ask to parse (DEFMETHOD FOO (X)), NODE-KIND does not seem to be invoked. What makes the difference?
11:54:22
scymtym
beach: this is probably caused by a quirk in the relations of the different lambda list grammars. there is a point at which the parser inspects a required variable in order to determine whether it is a pattern (in the destructuring sense) or a simple variable (not sure about the terminology)
11:55:17
scymtym
you can return :VARIABLE-NAME as the NODE-KIND of your nodes which represent variable names
11:56:26
scymtym
let me check why this happen in the DEFUN case. i think the SPECIALIZED-LAMBDA-LIST used for DEFMETHOD may avoid the quirk because its required parameters are different