index a unit past its first bad form
Record plain declarations, with location and docstring, and keep going when one toplevel form is wrong. sexc --check and --symbols print that. Specs, realizations, and closure helpers stay out of the index for future rework (@alex-eg).
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
get-constructor
|
||||
variant-fields
|
||||
reset-declarations!
|
||||
reset-name-tables!
|
||||
|
||||
normalize-fields
|
||||
|
||||
@@ -327,6 +328,13 @@
|
||||
(set! +constructor-db+ (make-hash-table))
|
||||
(set! +ops-db+ (make-hash-table)))
|
||||
|
||||
;;; What `reset-declarations!' leaves, and what a second unit must not see.
|
||||
(define (reset-name-tables!)
|
||||
(set! +type-db+ (make-hash-table))
|
||||
(set! +tag-db+ (make-hash-table))
|
||||
(set! +name-db+ (make-hash-table))
|
||||
(reset-declarations!))
|
||||
|
||||
;;; Type matcher macro
|
||||
;;; (type-match type
|
||||
;;; (int ...)
|
||||
|
||||
Reference in New Issue
Block a user