This is probably obvious, but if you have a microcontroller board with an SD card interface, the SD card provides a convenient way to load uLisp sources.
- Copy the source listing from your computer to the SD card.
Depending on the processor you’re using you may need to give it a name of no more than 8 characters, and a three-character extension, such as “PLOTTER.TXT”.
-
Put the SD card in your microcontroller board and run uLisp.
-
Enter the following program:
(defun load (filename)
(with-sd-card (str filename)
(loop
(let ((form (read str)))
(unless form (return))
(print (second form))
(eval form)))))
- Give the load command followed by the filename; for example:
(load "PLOTTER.TXT")
The command will print out the name of each function loaded from the file.