UP | HOME

HW16
COP-3402

Define a grammar for arithmetic expressions given in reverse Polish notation, that preserves its syntactic structure, i.e., syntax trees will capture the order of operations when walking the tree.

Answer these questions:

  1. What are the nonterminals?
  2. What are the productions?
  3. Don't forget to name the starting nonterminal.
  4. Does this grammar have ambiguity?

Author: Brent Pappas

Created: 2026-04-02 Thu 15:09

Validate