Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to invoke scheme such that it evaluates expressions read from a file?

0
Posted

Is there a way to invoke scheme such that it evaluates expressions read from a file?

0

Almost all implementations provide such a mechanism. Please consult your documentation. Also see SRFI-22, “Running Scheme Scripts on Unix”, for possible way to turn your Scheme file into an executable script. On a *nix system, the convention is for programs to read from standard-input, and Scheme interpreters will typically do so. So, you would expect this to work: somescheme < somefile.scm Many interpreters provide command-options to load-and-execute a file. Guile, for example, uses -s somefile.scm.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.