0

I am wondering if some symbols such as the ones in propositional logic have precedence over others in drawing parse trees.

For example, the sentence: p ∧ q → r, would take precedence over in becoming the root of the parse tree or vice versa?
Or is there no precedence meaning, or could be used the root?

Älskar
  • 264
  • 3
  • 10

1 Answers1

0

Operator precendences have to be specified, either in the grammar or using other means. There is no inherent precendence to rules, but you can fix one arbitrarily.

Raphael
  • 73,212
  • 30
  • 182
  • 400