I've been toying with writing a routine that will parse the variable names in a .lsp file. Since Bricscad does not have a GUI for writing lisp this is a manual process now. I've tried LispLink and it more or less works for finding variable names, but I don't like it much as an editor. The concept at this point is to write a routine that will read a .lsp file, parse it, then output a text file that lists each defun header, with the variables listed just below the associated header.
Questions:
1. Has someone already done this? I've found a few routines online but they either require running the code to get a list of atoms, or they have restrictions on the variable names (ie., can't start with '#'), or they require manual pre-processing of the .lsp file.
2. Is there anything in lisp that creates local variables other than a 'set' or a 'setq'? Is the name after 'foreach' considered a local variable?
Any help or suggestions would be appreciated.