1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00
guile/module
Matt Wette a12ca2b999 multiple languages support via file extension or #lang header
From scripts/compile pushed default assumption of #:from as 'scheme down
into system/base/compile where filename and first line can be used to
deduce intended "from" language.  If first line of a file is of the form
  #lang ecmascript
then the file is assumed consist of source language "ecmascript".

* module/scripts/compile.scm (compile): changed default #:from to #f
  from 'scheme

* module/system/base/compile.scm(lang-from-port, %file-extension-map,
  add-lang-extension, lang-extension-for): added global
  %file-extension-map with accessor lang-extension-for and updater
  add-lang-extension.  Also, added lang-from-port to parse  first line,
  looking for #lang.

* test-suite/tests.scm: added "load-lang" test.

* test-suite/Makefile.am(SCM_TESTS): added tests/load-lang.test
2023-02-23 21:41:55 +01:00
..
ice-9 Bump user-visible copyright years to 2023. 2023-01-13 16:15:07 +01:00
language Do not expand 'make-vector' primcall with wrong number of arguments. 2023-01-16 15:33:18 +01:00
oop goops: Preserve all slot options in redefinable classes. 2021-03-19 21:45:53 +01:00
rnrs Add 'bytevector-slice'. 2023-01-14 16:14:17 +01:00
scheme Add function vector-copy! to core 2021-08-06 17:13:21 +02:00
scripts multiple languages support via file extension or #lang header 2023-02-23 21:41:55 +01:00
srfi srfi-35: Fix expansion of 'condition' for compound conditions. 2022-10-01 18:04:16 +02:00
sxml sxml: Make parser thread-safe. 2021-10-22 13:52:40 +02:00
system multiple languages support via file extension or #lang header 2023-02-23 21:41:55 +01:00
texinfo texinfo: Add basic support for @w{...}. 2020-06-18 00:30:30 +02:00
web web: 'tls-wrap' retries handshake upon non-fatal errors. 2022-08-04 15:59:23 +02:00
Makefile.am Rework bootstrap to be reproducible 2022-02-01 14:50:40 +01:00
rnrs.scm Define top-level bindings for aux syntax: else, =>, _, ... 2019-09-12 21:50:51 +02:00
statprof.scm Statprof reports primitive names 2020-06-04 11:46:34 +02:00
texinfo.scm texinfo: Add basic support for @w{...}. 2020-06-18 00:30:30 +02:00