Skip to main content

10. Ambiguity

06/03/23

a+aaa+a*a EaE+EEE(E)E \to a|E+E|E*E|'('E')'

Parse trees Denilatious =>=>, =>=>*

Parse Tree

  • Root is the start symbol EE
  • Nodes are non-terminal symbols
  • Leaves are terminal symbols
  • Yield of the tree is the word we are parsing code