1 votes 1 votes Given answer: 1 I am able to get 2 rightmost derivation of 'a+a' First: S -> E + E -> E + a -> a + a Second: S -> E + E -> E + a -> a + a Total derivation -> 2 Compiler Design compiler-design parsing test-series + – shikharV asked Nov 19, 2015 • retagged Jul 18, 2022 by makhdoom ghaya shikharV 408 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 4 votes 4 votes Two derivation tree are possible 1.S ---> E + E ---> E + a ----> a + a 2. S ----> E ----> E + E ---> E + a ----> a + a Digvijay Pandey answered Nov 19, 2015 • selected Apr 22, 2017 by LeenSharma Digvijay Pandey comment Share Follow See all 0 reply Please log in or register to add a comment.