正在加载图片...
Using Edwin Edwin is the editor that comes with Scheme. Edwin is based on Emacs, and therefore many of the keystroke combinations in Edwin are the same as they are in Emacs. You don't have to use Edwin to edit Scheme programs (you could do it in Wordpad, for example). However, you are highly encouraged to learn the basics of using Edwin; it will save you time later To start Edwin, go to the Windows Start menu, and select: Programs, MIT Scheme, Edwin. This will bring up the Edwin editor. Type in one of the previous hello world forms. Then, with the cursor at the end of the form, use the keystroke combination ctrl-x ctrl-e to evaluate the form Note that in the scheme editor forms are not evaluated automatically Now, let's write a Scheme program and save it in a file. First, to get a new buffer, do ctrl-x ctrl-f Edwin will prompt you for a path. Enter an appropriate path for your directory, and end it with the file name hello world. scm Scheme will indicate that this is a new file. now enter one of the previous hello world forms into the new buffer. When done, do ctrI-x ctrI-s This saves the file Next. do ctrl-x b This switches you back to the Edwin Scheme interpreter. Load the file Hello World.scm into the interpreter by doing (load [path where path] is the path for the Hello world. scm file Then do ctrl-x ctrl-e to evaluate. Note that the result is the same as when this was typed in directly to the interpreter. Leave Edwin by doing ctrl-x ctrlUsing Edwin Edwin is the editor that comes with Scheme. Edwin is based on Emacs, and therefore, many of the keystroke combinations in Edwin are the same as they are in Emacs. You don't have to use Edwin to edit Scheme programs (you could do it in Wordpad, for example). However, you are highly encouraged to learn the basics of using Edwin; it will save you time later. To start Edwin, go to the Windows Start menu, and select: Programs, MIT Scheme, Edwin. This will bring up the Edwin editor. Type in one of the previous hello world forms. Then, with the cursor at the end of the form, use the keystroke combination ctrl-x ctrl-e to evaluate the form. Note that in the Scheme editor, forms are not evaluated automatically. Now, let's write a Scheme program and save it in a file. First, to get a new buffer, do ctrl-x ctrl-f Edwin will prompt you for a path. Enter an appropriate path for your directory, and end it with the file name HelloWorld.scm. Scheme will indicate that this is a new file. Now, enter one of the previous hello world forms into the new buffer. When done, do ctrl-x ctrl-s This saves the file. Next, do ctrl-x b This switches you back to the Edwin Scheme interpreter. Load the file HelloWorld.scm into the interpreter by doing (load [path]) where [path] is the path for the HelloWorld.scm file. Then do ctrl-x ctrl-e to evaluate. Note that the result is the same as when this was typed in directly to the interpreter. Leave Edwin by doing ctrl-x ctrl-c
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有