Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make output in mit-scheme less verbose when it's used for running script

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.

like image 802
evfwcqcg Avatar asked Oct 27 '25 00:10

evfwcqcg


1 Answers

You are looking for the --silent flag.

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

like image 89
robbyphillips Avatar answered Oct 29 '25 18:10

robbyphillips