README.md 1.01 KB
Newer Older
Brooks J Rady's avatar
Brooks J Rady committed
1 2 3 4
# Astonish

A Common Lisp library for querying and manipulating Lisp ASTs

5 6 7 8 9 10 11 12 13
## Usage

TODO

## Installation

Will hopefully be in Quicklisp soon?

## Proposed Features
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

select-conses should take a fancy query string that supports OR operations,
filtering on cadr, caddr, etc, and should also work on atoms. Maybe something
like this: "test . code-of-conduct > is-true, is-false", run on this:

(TEST CODE-OF-CONDUCT "Is the given action unsuitable for the given pet?"
  (IS-FALSE (PET "Cat")) (IS-FALSE (PET "Dog")) (IS-TRUE (PET "Fish"))
  (IS-FALSE (PET "Rabbit")) (IS-FALSE (PET "Bird"))
  (IS-TRUE (PLAY-FETCH "Cat")) (IS-FALSE (PLAY-FETCH "Dog"))
  (IS-TRUE (PLAY-FETCH "Fish")) (IS-TRUE (PLAY-FETCH "Rabbit"))
  (IS-TRUE (PLAY-FETCH "Bird"))))

Should give:

(IS-FALSE (PET "Cat")) (IS-FALSE (PET "Dog")) (IS-TRUE (PET "Fish"))
(IS-FALSE (PET "Rabbit")) (IS-FALSE (PET "Bird"))
(IS-TRUE (PLAY-FETCH "Cat")) (IS-FALSE (PLAY-FETCH "Dog"))
(IS-TRUE (PLAY-FETCH "Fish")) (IS-TRUE (PLAY-FETCH "Rabbit"))
(IS-TRUE (PLAY-FETCH "Bird"))))