This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CS1102: Implementing the Slideshow Language Kathi Fisler, WPI September 14, 2007 Implementing the Prototype Last class, we developed a data definition for programs in a slideshow language. The notes for that lecture show the data definitions. Now, we want to implement the language. To implement the language, we need a program that consumes a talk and runs it lets call this function run-talk . In the posted code file (ppt-stage1.scm), youll find a small collection of functions for providing a text-based interface to slideshows. Any unknown Scheme functions in the following code are given in the posted file, and just handle various forms of printing. Whats the contract on run-talk ? ;; run-talk : talk void ;; executes the commands in a talk then displays end-of-show message What now? Fall back on the templates! We know that a talk contains a list of commands, so well need a function that runs all the commands in a list: ;; run-talk : talk void ;; executes the commands in a talk then displays end-of-show message...
View Full Document
This note was uploaded on 02/06/2008 for the course CS 1102 taught by Professor Fisler during the Fall '07 term at WPI.
- Fall '07