Derivation & Derivation Tree in Compiler Design (Left Most Derivation & Right Most Derivation)
Download pdf Derivation · The process of deriving a string is called as derivation . · The geometrical representation of a derivation is called as a parse tree or derivation tree. 1. Leftmost Derivation- · The process of deriving a string by expanding the leftmost non-terminal at each step is called as leftmost derivation . · The geometrical representation of leftmost derivation is called as a leftmost derivation tree . Example- Consider the following grammar- S → aB / bA A → aS / bAA / a B → bS / aBB / b ( Unambiguous Grammar ) Let us consider a string w = aaabbabbba Now, let us derive the string w using leftmost derivation. Leftmost Derivation- ...