mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 08:40:19 +02:00
compile ecmascript's parser. yay! instant load-time!
* module/language/ghil/compile-glil.scm (codegen): If there are more than 255 arguments, make a list and use apply instead of calling directly. * module/language/Makefile.am: Now we can compile parse.scm. Yay! * module/language/scheme/compile-ghil.scm: Add a note. * module/language/ecmascript/compile-ghil.scm: Add a note.
This commit is contained in:
parent
594d9d4c48
commit
aec8febc46
4 changed files with 13 additions and 5 deletions
|
@ -381,6 +381,8 @@
|
|||
;; FIXME: not hygienic, relies on @apply not being shadowed
|
||||
(,args (retrans `(@apply ,@args))))
|
||||
|
||||
;; FIXME: we could add inliners for `list' and `vector'
|
||||
|
||||
(define-scheme-translator @apply
|
||||
((,proc ,arg1 . ,args)
|
||||
(let ((args (cons (retrans arg1) (map retrans args))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue