Implementing the Slideshow Language

Implementing the Slideshow Language - CS1102: Implementing...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 2

Implementing the Slideshow Language - CS1102: Implementing...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online