| 519 | } |
| 520 | |
| 521 | static bool lisp_def_head(const char *text) { |
| 522 | static const char *const heads[] = {"defn", |
| 523 | "defn-", |
| 524 | "def", |
| 525 | "defmacro", |
| 526 | "defmulti", |
| 527 | "defmethod", |
| 528 | "defprotocol", |
| 529 | "defrecord", |
| 530 | "deftype", |
| 531 | "definterface", |
| 532 | "defonce", |
| 533 | "define", |
| 534 | "define-syntax", |
| 535 | "define-values", |
| 536 | "define-struct", |
| 537 | "define-record-type", |
| 538 | "define/contract", |
| 539 | "struct", |
| 540 | NULL}; |
| 541 | return kind_in_exact_set(text, heads); |
| 542 | } |
| 543 | |
| 544 | /* Chialisp heads whose THIRD form is a parameter list, so the symbols in it |
| 545 | * bind rather than refer: `(defun NAME (params) body)`. Deliberately not |
no test coverage detected