of a grammar element • Give the parser hint to follow certain paths in case of ambiguity „if you see these tokens, then follow this path“ • Recommended instead of using backtracking
an expression ? 2.What is the Expected Type of an expression ? 3.Is some type conformant with another type ? T getActualType (Expression expr) T getExpectedType (Expression expr) boolean isConformant (T expected, T actual)
of the declared variable • Assignment: right-hand side must be of type of left-hand side • If condition: boolean • Argument of a method call: type of the corresponding parameter of the method