G1 has two rules: S → aSb and S → ab (a, b are terminals, S is the unique non-terminal and the start symbol.
G2 has five rules: S → aSBC, S → abC, CB → BC, bB → bb, bC → bc, cC → cc (a, b, c are terminals, S, B, C are non-terminals and S is the start symbol.
| Grammar rules: | and | Lexicon: | ||
| i. S → NP VP | v. NP → NP REL S | this: PRO | that: PRO, REL | |
| ii. NP → PRON | vi. VP → V | is: V | Jack: NAME | |
| iii. NP → ART N | vii. VP → V NP | the: ART | built: V | |
| iv. NP → NAME | house: N |
CRICOS Provider Code No. 00098G