Our tests/ directory contains a series of test programs, some of which are adhoc and some of which are more useful.
This directory is designed to contain bigger, or more interesting examples, than those tests.
- brainfuck.lisp - A brainfuck interpreter
- Sample brainfuck programs located beneath bf/
- Run it with no arguments to execute the "Hello world" program.
- Or pass the path to a script to load and run instead.
- example.lisp - Our first example.
- globals.lisp - Explicit demonstration of scopes
- Shows that local variables always take precedence over global ones.
- inception.lisp - A lisp interpreter written in slisp
- This can load and evaluate named files, and optionally give a REPL mode too.
- Run "./inception ./inception.in" to see it in operation.
- nqueens.lisp - Solver for The N-queens problem
- Defaults to solving 8x8, but you can give another size as CLI argument.
- wc.lisp - Clone of the Unix "wc" command.
- Shows lines, characters, and words for named files.
- Demonstrates the use of our CLI argument parsing package; ../packages/arg-parser.lisp