Written work 1
Due on August 30th @ 3:00 PM (in class, to Drew, or at Engineering front office)
Not accepted late
Question 1

What is the purpose of the lexer component of a compiler? Give an example of an input that GCC would flag for a lexical error.

Question 2

What is the purpose of the syntactic analysis component of a compiler? Give an example of an input that GCC would flag for a syntactic error.

Question 3

What is the purpose of name analysis in a compiler? Give an example of an input that GCC would flag for failing name analysis.

Question 4

What is the purpose of type analysis in a compiler? Give an example of an input that GCC would flag for failing type analysis.