CS 333: Assignment #5

Language Semantics

For this assignment, develop a wiki page that shows examples of I/O and exception handling. If your language has no built-in exception handling, discuss conventions and methods for catching errors in the program and handling them or exiting gracefully.


Tasks

  1. For each of your languages, create some example programs that demonstrate reading and writing to both the terminal and to a file. Some things to consider in your examples and writeup include the following.
    • Does your language have built-in support for I/O, or is it part of a set of standard libraries?
    • Does your language support different types of files, such as binary v. text files?
    • Can the user input information into the program interactively?
  2. For each of your languages, create some example programs that demonstrate error and exception handling. Some things to consider in your examples and writeup include the following.
    • Does your language have built-in support for exception handling? If so, what are the controls structures and how do they work?
    • Are there conventions for how functions report errors? If so, what are they?
    • What are common errors in your language, and what do they mean? What went wrong?

Extensions


Writeup

The writeup for this week is the assignment itself, plus the code, which should be integrated with your writeup. Once you have written up your assignment, give your main page for this week the label:

cs333f09language3