




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































David Galles Department of Computer ScienceUniversity of San Francisco
syntax
errors if it cannot be
generated from the Context Free Grammar whichdescribes the language The following code has no
syntax
errors, though it
has plenty of
semantic
errors:
x needs to be a class variable, which has aninstance variable y A needs to be an array variable x.y[z].w = 4 x needs to be a class variable, which has aninstance variable y, which is an array of classvariables that have an instance variable w
called with the correct types^ In simpleJava, +, -, *, / all take integers^ In simpleJava,
Standard Java has polymorphic functions &type coercion
06-11:
In C, types must have the same structure Coerceable types also apply
In Object oriented languages, can assignsubclass value to a superclass variable
06-15:
06-17:
legal:
masks the
function definition for