Type Checking
Type Checking
• Type expressions are basic types such as boolean, char, integer, and real. During
type checking, a basic type-type_error will signify an error; void, which denotes
"the lack of a value," allows statements to be checked.
• A type name is a type expression since type expressions can be named.
• A type expression is a type constructor applied to the type expressions.
• Variables whose values are type expressions can be found in type expressions.
Type systems
• The type system is a set of rules for associating type expressions with
varying parts of the program. A type checker implements a type system.
Distinct compilers or processors of the system Language may employ
different type systems.