Create .lisp files https://www.tutorialspoint.com/lisp/lisp_environment.htm is describing everything step by step, but it says TextEditor on Mac can save .lisp files, which I wasn't able to do.
Load .lisp file (load "filename.lisp") leads to error: file with such name doesn't exist
How to create .lisp files and run them on mac?
1k views Asked by ninjaknight At
2
There are 2 answers
0
On
It is actually pretty easy to do.
- Open TextEdit.
- Write your code.
- Save it as text file or whatever.
- Go to Finder and find where you saved your file.
- Right click on the file.
- Tap to show information button.
- You will notice “Name and Extension” field.
- Change “.txt” with “.lisp” extension for your file.
- You are good to go!
TextEditor on mac has limitations to how file can be saved (.txt, etc.). You can use any other editor, ex: TextWrangler, which allow you to write file extension. Or you can use editors specific for lisp, ex: Emacs (more massive)
It's possible that when you type (load "filename.lisp") it searches in some specific directory, where it's not present. So, to avoid this, you should type full path to the file you want to open. Ex: (load "/Users/macbook/Desktop/foldername/filename.lisp")