Take the productionsand the word . There is only one parse tree: its root uses and each child uses . There are nevertheless exactly two derivations,andaccording as the left or right occurrence of is replaced first. This illustrates that derivations record replacement order while a context-free grammar parse tree does not.
Articles by others on the same topic
There are currently no matching articles.