2010/11

 

Sample Run 1

Please input a string to be checked

a=44;

TRUE

b=5*3;

TRUE

c=a/23;

TRUE

a*b+(c-4);

FALSE

-4

FALSE

END


Symbol Table

============

Symbol iden 0 = a

Symbol iden 1 = b

Symbol iden 2 = c


Sample Run 2

Please input a string to be checked

f=3*(2+(435*9));

TRUE

h=g

FALSE

END


Symbol Table

============

Symbol iden 0 = f

 
COMP204
Computer Systems and their Implementation../../../../COMP204.html

Deadline:

3pm, Fri 8th April ’11

Sample Output

Lab Sessions


Labs have been arranged to allow for students to work on the assignment, and to request assistance from the Lab tutors.


Attendance is based on surname (as listed below); please try to attend the sessions allocated.  If there are free terminals during other sessions, then you are welcome to use these, but do not prevent others from attending their allocated labs.


Surnames A-F

    Tuesday: 09.00 - 10.00 (H105, GH)

Surnames G-K

    Tuesday: 10.00 - 11.00 (H105, GH)

Surnames L-Q

    Thursday: 11.00 - 12.00 (H116, GH)

Surnames R-Z

    Thursday: 12.00 - 13.00 (H116, GH)


MARKING SCHEME


Below is the breakdown of the mark scheme for this assignment.  Each category will be judged on the correctness, efficiency and modularity of the code, as well as whether or not it compiles and produces the desired output.


Implementation:

    statement method = 10 marks

    expression & term method = 10 marks

    primary method = 10 marks

    unsignednumber method = 10 marks

    addop, multop, letter, iden and

    digit methods = 15 marks

    symbol table class = 25 marks


Execution and Output = 10 marks

Comments and layout = 10 marks


This assignment contributes 10% to your overall mark for Comp 204.