| CS 291 | University of Puget Sound | Spring, 2020 |
|
Programming Language Paradigms:
|
||
|
Explorations with Functional Problem Solving (supported by Scheme/Haskell)
and Declarative Prblem Solving (supported by Prolog) |
||
In the previous lab, you used Chez Scheme for simple processing. Work proceeded by typing expressions directly into a terminal window running ChezScheme. The Scheme environment then evaluated each expression and printed each result. Although this processing produced answers, we had to type all expressions into Scheme every time we wanted those answers. As with your previous programming, a more effective approach is to store programs in a file.
When using a file, the common approach is to use a simple text editor (e.g., TextEdit, emacs, aquamacs, vi, Word Pad, Note Pad) to write Scheme programs.
By custom, Scheme files utilize an ".ss" extension (e.g., filename.ss).
Once created, a file is loaded with the load command (e.g., (load "filename.ss") ). Loading a file updates every line that has been define earlier.
Once saved, the material can be printed. Further, you can reload commands into the definitions window using the File menu.
|
created 2 February 1997 revised 18 January 2009 revised November-December 2019 |
|
| For more information, please contact Henry M. Walker at walker@cs.grinnell.edu. |