CSE 116 Lecture Notes - Lecture 9: Computer Language

147 views1 pages

Document Summary

Cse 116 intro to computer science ii. Problem description: the goal of this exercise is to reproduce in a limited way, an interpreter for a computer language. The language will be defined as the following: declaration statements (integer or string only, single-letter names, character-string literals (ex: jim scandale , simple numeric assignments (ex: a = b + c, =, , *, /, %) Simple character-string assignments (ex: n = cse116 : read (input one integer value, display (output integer value or output character-string value, end-statement ( end" signals the end of the program) The program will be typed by the user, a single statement on each line. The interpreter will read the program in this language and store it onto a text file. Variables will be checked against their declaration statements and each use of an undeclared variable will be flagged as an error.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents