Commit bb42e1e7 by Francois-Rene Rideau

Move fare-quasiquote-matcher in this repository, from the fare-quasiquote repository.

parent f0981138
;;; -*- Lisp -*-
(asdf:defsystem :fare-quasiquote-matcher
:depends-on (:fare-quasiquote :fare-matcher)
:components ((:file "fare-quasiquote-matcher")))
;;; -*- Mode: Lisp ; Base: 10 ; Syntax: ANSI-Common-Lisp -*-
;;; fare-matcher implementation of fare-quasiquote
;;; Copyright (c) 2002-2012 Fahree Wreido <>
#+xcvb (module (:depends-on ("quasiquote" "/fare-matcher")))
(in-package :fare-quasiquote)
(declaim (optimize (speed 1) (safety 3) (debug 3)))
(eval-when (:compile-toplevel :load-toplevel :execute)
;; the below instruction enables pattern-matching for the simplifier.
list cl:list
list* cl:list*
cons cl:cons
quote cl:quote
vector cl:vector)
(fare-matcher:define-symbol-matcher knil
'#'(lambda (form)
(or (null form)
(and (quotep form) (null (single-arg form)))
(fare-matcher:define-macro-matcher quasiquote
#'(lambda (x) (fare-matcher:pattern-matcher (quasiquote-expand x))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment