You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
The pseudo code for Canonical bottom up parser was given as:
delta<-x
while delta != s do
choose A -> gamma such that delta = (alpha) (gamma)z
delta<- (alpha)(A)z
done
accept
but My doubt is why is it delta = (alpha)(gamma)z??
because canonical bottom up parse is supposed to construct a right
most derivation in reverse order
but this pseudo code would imply it is a right most derivation in
forward order
Cormack also gave an example with this:
delta=x=cdhfg
Ahfg
AhB
S
This example is a reight most derivation in reverse order but the
pseudo code doesn't seem to match it
Please help!!