In Win32 GNU Common Lisp development environment, after GNU Common Lisp is installed in Win32 environment, a shortcut is generated in the Start menu to view its attributes,
The start position is blank. After the shortcut is copied to any directory for running, the running directory will be used as the current path. I create a lispworks folder on the desktop as the project directory for practice, and then use the GNU Common Lisp 2.6.1 folder
Copy the shortcut to run it. Www.2cto.com to be honest, the interactive environment of GCL is actually a console program with no indentation and syntax highlighting. You may not like it either,
My solution is to use the VIM editor. Currently, I do not know how to set up the environment. It can only be said that after being edited and saved using VIM, it can be loaded in GCL. For example, create a hello under the lispworks directory. lisp: The above is a hello-world Program, and defun is a function declaration. Syntax: (defun function name (parameter *) (function subject) in the example program, the function name is hello-world. The parameter list is (), that is, the parameter is null. The main body of the function is to call format.
Output string "hello, world ". Save www.2cto.com and enter (load "hello. lisp "), load the source file, and the result is as follows: Of course, you can also enter the above Code in interactive mode. If a running error occurs, it will be interrupted under the debugger: Okay, I admit that I will only: q is returned from the debugging mode, re-enter the code, and finally introduce a VIM shortcut key di (delete the code matching the brackets.
Author: lisper