adjust bindings-table encoding

This commit is contained in:
Matthew Flatt 2015-03-16 17:26:51 -06:00
parent bbfdc73e5d
commit 6a2e75c454
2 changed files with 5 additions and 3 deletions

View File

@ -237,8 +237,10 @@
(values phase
(for/hash ([(sym id) (in-hash ht)])
(values sym
`(#%decode-syntax
,(decompile-stx (stx-encoded id) stx-ht)))))))
(if (eq? id #t)
#t
`(#%decode-syntax
,(decompile-stx (stx-encoded id) stx-ht))))))))
(quote language-info ,lang-info)
,@(if (null? flags) '() (list `(quote ,flags)))
,@(let ([l (apply

View File

@ -140,7 +140,7 @@
[lang-info (or/c #f (vector/c module-path? symbol? any/c))]
[internal-context (or/c #f #t stx? (vectorof stx?))]
[binding-names (hash/c exact-integer?
(hash/c symbol? stx?))]
(hash/c symbol? (or/c #t stx?)))]
[flags (listof (or/c 'cross-phase))]
[pre-submodules (listof mod?)]
[post-submodules (listof mod?)]))