guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compile-file and enviornments 2


From: Matt Wette
Subject: compile-file and enviornments 2
Date: Tue, 24 Jul 2018 06:20:27 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

This pertains to maintaining a symbol table while reading extension languages
using compile-file.  Another solution, maybe preferable, is to detect in the
spec file whether the input is iteractive or a file.  Will the following work?

(define-language nx-javascript
  #:reader      (lambda (p e) (if (eq? e (interaction-enviornment))
                                  (js-stmt-reader p e)
                                  (js-file-reader p e)))
  ...)

Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]