나는 보이는 test.scm라는 파일이 같은 :비 repl 모드에서 mit/gnu scheme을 어떻게 사용합니까?
(display 5)
나는이
cat test.scm | scheme
처럼 이동하거나이
scheme < test.scm
를 좋아하거나
을 같은cat test.scm | scheme > output.txt
얻을 수
MIT/GNU Scheme running under GNU/Linux
Type `^C' (control-C) followed by `H' to obtain information about interrupts.
Copyright (C) 2011 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 Sunday February 7, 2016 at 10:35:34 AM
Release 9.1.1 || Microcode 15.3 || Runtime 15.7 || SF 4.41
LIAR/x86-64 4.118 || Edwin 3.116
1 ]=> 5
;Unspecified return value
1 ]=>
End of input stream reached.
Moriturus te saluto.
다음과 같이하려면 어떻게해야합니까?
5
가능한 [MIT-Scheme에서 .scm 스크립트 (REPL 외부)를 어떻게 실행합니까?] (https://stackoverflow.com/questions/903968/how-do-i-execute-a- scm-script-outside-of-the-repl-with-mit-scheme) – Flux