0
$\begingroup$

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?

$\endgroup$
0

1 Answer 1

0
$\begingroup$

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.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.