Lab 3: Recursive Descent Parser

These solutions available in an html version or a pdf version.

Adding productions to the grammar

Ungrammatical sentences

Number agreement (optional)

See our grammar2 in the answer code.

Extracting and viewing parsed sentences

Distribution of Productions

See our answer code for the production_distribution function.