| SDD1 | SDD2 | ||
|---|---|---|---|
| Grammar (G1) | Semantic Rules | Grammar (G2) | Semantic Rules |
is the start symbol, and , and are the three terminals. The non-terminal is the same as and the non-terminal is the same as . Here, the subscript is used to differentiate the grammar symbols on the two sides of a production. The function updates the symbol table with the type information for an identifier.
Let P and Q be the languages specified by grammars G1 and G2, respectively.
Which of the following statements is/are true?