How to do Pattern Matching in Common Lisp

我与影子孤独终老i 提交于 2019-12-02 18:51:01

Simple pattern matching functionality is explained in various Lisp books.

and others.

Above books explain implementing pattern matching in Lisp very well.

Libraries exist, for example cl-match, Optima and various others.

I think you may want the CL-Unification library: http://common-lisp.net/project/cl-unification/

I don't want to short circuit any learning you need to do for school (if that is the context in which this project is necessitated), but you could study the cl-ppcre library, http://weitz.de/cl-ppcre/, to see how an experienced Lisper does it. You could download the source and study it to understand. I would also second the book by Norvig, http://norvig.com/paip.html, mentioned above. You can learn so much from that book.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!