The astonish Reference Manual

This is the astonish Reference Manual, version 0.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 04:19:15 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 astonish

A small library for querying and manipulating Lisp ASTs

Author

Brooks J Rady <>

License

GPLv3

Version

0.1.0

Dependencies
  • uiop (system).
  • alexandria (system).
Source

astonish.asd.

Child Component

src (module).


3 Modules

Modules are listed depth-first from the system components tree.


3.1 astonish/src

Source

astonish.asd.

Parent Component

astonish (system).

Child Component

main.lisp (file).


4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


4.1 Lisp


4.1.1 astonish/astonish.asd

Source

astonish.asd.

Parent Component

astonish (system).

ASDF Systems

astonish.


4.1.2 astonish/src/main.lisp

Source

astonish.asd.

Parent Component

src (module).

Packages

astonish.

Public Interface
Internals

5 Packages

Packages are listed by definition order.


5.1 astonish

Source

main.lisp.

Use List
  • alexandria.
  • common-lisp.
Public Interface
Internals

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


6.1 Public Interface


6.1.1 Ordinary functions

Function: load-forms-from-file (file &optional package)

Read forms from a lisp file without any evaluation

Package

astonish.

Source

main.lisp.

Function: macroexpand-select (macros form)

Recursively expand all occurrences of select macros

Package

astonish.

Source

main.lisp.

Function: select-conses (path forms)

Given a path (a list of car’s) and list of forms, return all matching conses. The second return value is the same selection, but inverted

Package

astonish.

Source

main.lisp.


6.2 Internals


6.2.1 Ordinary functions

Function: cons-difference (a b)

Like set-difference, but filters for conses and preserves order

Package

astonish.

Source

main.lisp.

Function: filter-conses-by-car (car forms)

Filter forms so that only ones with the specified car remain

Package

astonish.

Source

main.lisp.

Function: lisp-file (file)

Adds a .lisp extension to pathnames without an extension

Package

astonish.

Source

main.lisp.

Function: map-inodes (function form)

Maps the given function over all the inner nodes of a tree

Package

astonish.

Source

main.lisp.


Appendix A Indexes


A.1 Concepts


A.3 Variables