This homework is due August 29, 8:00 AM. (Note: that's Monday, not Wednesday.)
Important: Your code may be shown to the entire class (along with programs from several others) during Monday's lecture.
After installing plai+handin.plt as described in the course web page, select the Manage CS 3520 Handin... menu item from DrScheme's File menu. Change to the New User panel, and pick a username and password. (Use your real name and real Utah student ID, so that we can connect your homework submissions with you.)
You will have to install plai+handin.plt for DrScheme on each different filesystem that you use to get a Handin button. However, after creating a handin account once from any machine, you can use DrScheme's Handin button on any other machine.
Using a programming language of your choice, implement an interepreter for a little language of string operations. Your interpreted language must include
Pick your own syntax and input method; document them in comments and with test cases. Chose a syntax that minimizes parsing effort for your interpreter.
For example, using a fully-parenthesized infix notation where & is the concatenation operator and @ is the rest-after operator, for the program
(("hello" & " ") & "world")
the interpreter should produce
"hello world"
and for the program
((("hello" & " ") & "world") @ "o")
the interpreter should produce
" world"
Submit your interpreter as a single file using the Handin button in DrScheme (even if you use a programming language other than Scheme). The Handin button submits whatever file you have opened in DrScheme. Of course, when you click Handin, provide the username and password that you chose for exercsie 1.1.
After submitting, you can confirm your submission through the web-based status server:
https://sniar.cs.utah.edu:7980/servlets/status.ss
Submitting a plain-text file turns it into a DrScheme-format file, so use DrScheme to read a file that you download from the status server.
Last update: Wednesday, November 23rd, 2005mflatt@cs.utah.edu |