Semantic Analysis Flashcards
What is the difference between syntax and semantics?
What is the difference between static semantics and dynamic semantics
Semantic analysis is done via
Annotations on a parse tree called ATTRIBUTE GRAMMARS
What is more precise? A syntax tree or a parse tree?
A parse tree
Does dynamic checking increase or decrease speed?
Decrease
What is static analysis?
What is attribute grammar
Examine the following attrivute grammar:
Examine the following annotation of a parse tree:
What is a synthesized attribute?
What is an S-attributed grammar?
all attributes are synthesized
What are inherited attributes?
Examine the following example for inherited attribute grammar:
Examine the following terms:
A static scheme is
Based on the structure of the grammar. O(n)