frontend.scm 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ;;; WebAssembly compiler
  2. ;;; Copyright (C) 2023, 2024 Igalia, S.L.
  3. ;;; Copyright (C) 2023 Robin Templeton <robin@spritely.institute>
  4. ;;; Copyright (C) 2023 David Thompson <dave@spritely.institute>
  5. ;;;
  6. ;;; Licensed under the Apache License, Version 2.0 (the "License");
  7. ;;; you may not use this file except in compliance with the License.
  8. ;;; You may obtain a copy of the License at
  9. ;;;
  10. ;;; http://www.apache.org/licenses/LICENSE-2.0
  11. ;;;
  12. ;;; Unless required by applicable law or agreed to in writing, software
  13. ;;; distributed under the License is distributed on an "AS IS" BASIS,
  14. ;;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ;;; See the License for the specific language governing permissions and
  16. ;;; limitations under the License.
  17. ;;; Commentary:
  18. ;;;
  19. ;;; Scheme to WebAssembly compiler.
  20. ;;;
  21. ;;; Code:
  22. (define-module (hoot frontend)
  23. #:use-module (hoot config)
  24. #:export (hoot-load-path
  25. hoot-system-load-path
  26. hoot-load-extensions))
  27. (define hoot-load-path
  28. (make-parameter (parse-path (getenv "HOOT_LOAD_PATH"))))
  29. (define hoot-system-load-path
  30. (lambda () %stdlib-path))
  31. (define hoot-load-extensions
  32. (make-parameter %load-extensions))