Organization of Programming Languages
Topics for Examination III
-
Name the operations of BNF.
-
To whom do the B and the N in BNF refer? What were they known for?
-
Give a derivation (left-most, right-most)
-
Give a parse tree.
-
What are the three most common extensions of BNF to give EBNF?
-
Give ENBF for: a) a floating point constant. b) a statement construct.
c) something else.
-
What is semantics? Give an example of the difference between syntax
and semantics.
-
What is an ambigous grammar? Give an example.
-
Give an example of a metalanguage.
-
What is the difference between left recursive and right recursive grammars?
-
Statement-Level Control Structures
-
Concepts discussed in class
-
Concepts discussed in the text
-
Compound Statements
-
Concepts discussed in class
-
Concepts discussed in the text
-
Selection Statements
-
Concepts discussed in class
-
Concepts discussed in the text
-
Iterative Statements
-
Writing assembler code that would simulate control statements
-
Writing procedures to parse control statements
-
Writing procedures to produce assembler code to generate control statements
-
Any other related questions.