mit-scheme-devel
[Top][All Lists]
Advanced

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

How to fix and improve my one-liner to execute a R7RS program


From: Amirouche Boubekki
Subject: How to fix and improve my one-liner to execute a R7RS program
Date: Fri, 9 Dec 2022 17:11:43 +0100

Hello,


I am working on a universal command line tool to execute R7RS programs.
At this time, I use the following invocation of mit to execute the
scheme program
called tests/hello.scm that depends on a library that is inside the
directory called tests/:

  scheme --batch-mode --eval "(find-scheme-libraries! \"tests/\")"
--load tests/hello.scm --eval "(exit 0)" -- hello you

It is a little arcane, but it works. Is there an easier way to go about this?

Note: i rely on mit master:

# scheme --version
MIT/GNU Scheme 12.0.50
Copyright (C) 2022 Massachusetts Institute of Technology
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Image saved on Monday December 5, 2022 at 12:25:28 PM
  Release 12.0.50 || SF || LIAR/x86-64

Best regards,


Amirouche ~ https://hyper.dev



reply via email to

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