Docsity

Programming Assignment 1 for CSCI 531 Spring 2008, Assignments of Computer Science

Toggle sidebar
bg1
CSCI 531 Spring 2008
Programming Assignment 1
Assigned Friday, 2008-02-22. Due Wednesday, 2008-02-27
The purposes of this exercise are to insure that you can use the dropbox for
submission of programming exercises and that you can find the source code for
the Triangle compiler.
The Triangle compiler source code is available by anonymous ftp from http://ftp.cse.sc.edu/valtorta.
You may use ftp or point your browser to http://ftp.cse.sc.edu/valtorta.
1. Find the class Token in the Triangle compiler source code. Which file is
it in?
2. List the member variables of Token. There is an extra variable in addition
to the two in Example 4.2 (“Tokens of Mini-Triangle”). What is this
variable?
3. Copy the Token class into a file. Edit the file by adding a suitable comment
identifying the additional member variable that you found by answering
the previous question.
4. Submit the modified class using the course dropbox called project01 in
the dropbox center at https://www.cse.sc.edu.
1

Partial preview of the text

Download Programming Assignment 1 for CSCI 531 Spring 2008 and more Assignments Computer Science in PDF only on Docsity!

CSCI 531 Spring 2008

Programming Assignment 1

Assigned Friday, 2008-02-22. Due Wednesday, 2008-02-

The purposes of this exercise are to insure that you can use the dropbox for submission of programming exercises and that you can find the source code for the Triangle compiler. The Triangle compiler source code is available by anonymous ftp from http://ftp.cse.sc.edu/valtorta. You may use ftp or point your browser to http://ftp.cse.sc.edu/valtorta.

  1. Find the class Token in the Triangle compiler source code. Which file is it in?
  2. List the member variables of Token. There is an extra variable in addition to the two in Example 4.2 (“Tokens of Mini-Triangle”). What is this variable?
  3. Copy the Token class into a file. Edit the file by adding a suitable comment identifying the additional member variable that you found by answering the previous question.
  4. Submit the modified class using the course dropbox called project01 in the dropbox center at https://www.cse.sc.edu.