TJ Assignment 1 & 2: Syntax Reading and Exercises Reminder
Dear CSCI-316 Students,
First of all I would like to remind everyone to do the reading and exercises assigned in the Syntax-Reading-and-Exercises-B document that was provided to you last week—see my email of Nov. 17. At least 8 points on Exam 2, which is still scheduled for 12/15, will be allocated to questions relating to the above-mentioned reading and exercises! (The maximum score on Exam 2 will be 25 points.)
TJ-Asn-1-Info-Fa25 Document
The document TJ-Asn-1-Info-Fa25 was shown in class today (11/24) and is available to you on Brightspace. Below is a list of parts of this document you should be sure to look at before you work on TinyJ Assignment 1:
a) The information about the sideways representation of trees on the 2nd page.
b) The two examples of the program’s output on the 3rd and 4th pages.
c) The information about Symbols.X enum constants and calls of TJ.output.printSymbol on the 5th page.
d) The information about calls of TJ.output.printSymbol and TJ.output.decTreeDepth on the 8th page.
e) The information about how to do the assignment and how to test and submit your solution on the 10th page.
f) The information about currentToken and calls of getCurrentToken and nextToken on the 19th, 20th, and 24th pages.
g) The information about calls of accept on the 25th page.
h) The information about recursive descent parsing on the 26th page.
Recursive Descent Parsing Slides
One thing we will do during the first part of our class meeting on Wednesday (11/26) is look at the RecursiveDescentParsingCode-Slides document (which has already been posted to Brightspace). These slides give an illustrative example of how to write a recursive descent parsing method of the kind you need to complete for TinyJ Assignment 1.
Memory Allocation and VM Instruction Set
The document Memory-allocation-VM-instruction-set-and-hints-for-asn-2 on Brightspace provides important information relating to TinyJ Assignments 2 & 3: I plan to refer to this document in class on Wednesday (11/26) and next week. Assignment 2 has already been posted to Brightspace, but you won’t be expected to write code for Assignment 2 until after you have submitted Assignment 1 next week.
See you in class on Wednesday.
T. Yung Kong, D.Phil.
Professor
Computer Science Department
Queens College, CUNY
Flushing, NY 11367, U.S.A.