CSC376 · 2078 · 10 marks
Define type checking. Differentiate between type casting and coercion? Write SDT to carry out type checking for the following expression. E rightarrow n mid E * E mid E == E mid E[E] mid E uparrow
Define type checking. Differentiate between type casting and coercion? Write SDT to carry out type checking for the following expression. $E \rightarrow n \mid E * E \mid E == E \mid E[E] \mid E \uparrow$ [10]
Compiler Design and ConstructionChapter 2: Lexical, Syntax and Semantic AnalysisType Checking and Conversion