Professional Documents
Culture Documents
CC 04 Syntactic Analysis 2 Example
CC 04 Syntactic Analysis 2 Example
Example
• GAE: E à E + T | T
TàT*F|F
F à (E) | a
• Determine lookaheads for all productions
• First need to determine first sets for all right-hand
sides and follow sets for all non-terminals