Lisp packaging and pattern matching
The goal of this assignment is to familiarise yourself with Lisp packaging and to get some experience using pattern matching.
- Make a package called
patternsusingcl-projectas explained in Packages and Systems - Initialise a git repo in the new
patternsdirectory. - Make sure your package depends on
:trivia:named-readtables&:trivia.quasiquote - In your main file, make sure that those packages are in the
:usefield ofdefine-package - Make sure that you have
(in-readtable :fare-quasiquote)at the top of yourmain.lispfiles - Copy into the
src/main.lispseveral of the functions you wrote for the assignment on Recursion in Lisp (at least one function on lists and one function on binary trees). - Adapt the functions to work with the pattern-matching techniques as we did
for
my-lengthin Pattern Matching - Adapt your tests and put them in
tests/main.lisp - Make sure that all of your tests pass.