CSC 645 - Compiler Construction

Dr. R. M. Siegfried

Assignment #2 - Hand-parsing a Context-Free Grammar

Due Monday, February 27, 2023

Given the following grammar, draw a parse tree for the following expressions:


		      S ::= ee | bAQ

		      Q ::= c | Qe

		      A ::= d | cA
  1. bcdc
  2. bccdc
  3. bccdce

[Back to the Assignments Index]