3

I've found this question where people recommend to use mit-scheme for solving exercises from SICP. After doing some python and ruby I'm wondering is it possible to use mit-scheme interpreter/compiler in the same manner how can be used ruby or python? By this I mean simply write the script in vim and run mit-scheme my_script.scm in terminal to see the output.

update

Seems like mit-scheme < my_script.scm does what I was looking for, but its output is too verbose. Ideally, I'd like to see in the output only things which I deliberately sent to stdout.

Community
  • 1
  • 1
evfwcqcg
  • 15,755
  • 15
  • 55
  • 72
  • Yes, it opens repl. I was looking for something similar to running script using python or ruby's interpreter. – evfwcqcg Dec 29 '12 at 16:27

1 Answers1

4

You are looking for the --silent flag.

Usage: mit-scheme --silent < my-script.scm

robbyphillips
  • 961
  • 5
  • 14