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: Paul Gazzillo

Created: 2025-03-05 Wed 09:00

Validate