This is a collection of code snippets/notes for CS403.
- All files are tested using SBCL.
- Exit SBCL by using:
(quit)
- You can load files with (load "filename") but this is only useful if the file has global functions or variables.
- If there are no global functions/variables you can just paste the code directly into SBCL.
This is a table of files on this repository and a brief description on each.
File name | Description |
---|---|
helloworld.lisp | Print the string "Hello, World!" |
symboltest.lisp | Show that symbols are case-insensitive |
localvar.lisp | Some examples of using local variables and local functions. |
numbergame.lisp | A simple number guessing game using global variables and functions. |
commentconv.lisp | Comment convention example for lisp |
lists.lisp | Some list and list function examples. |
conditional.lisp | Conditional examples. |
findfirst.lisp | A function to find the first atom and a function to find the first non-atom. |