mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Handle lib names with numbers in them
This commit is contained in:
parent
40ba493ac3
commit
167d26adbb
1 changed files with 8 additions and 1 deletions
|
@ -43,7 +43,14 @@
|
|||
(define (library? ast)
|
||||
(tagged-list? 'define-library ast))
|
||||
|
||||
(define (lib:name ast) (cadr ast))
|
||||
(define (lib:name ast)
|
||||
(map
|
||||
(lambda (atom)
|
||||
(cond
|
||||
((number? atom)
|
||||
(string->symbol (number->string atom)))
|
||||
(else atom)))
|
||||
(cadr ast)))
|
||||
|
||||
;; Convert name (as list of symbols) to a mangled string
|
||||
(define (lib:name->string name)
|
||||
|
|
Loading…
Add table
Reference in a new issue