1 votes 1 votes Compiler Design compiler-design context-free-grammar numerical-answers test-series + – sumit_62 asked Dec 21, 2014 retagged Jul 16, 2022 by Anjana5051 sumit_62 328 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
3 votes 3 votes There is only one terminal in this i.e: id and rest all the symbols used has to come down to id for satisfying the BNF grammar.so, <expression> <term> <factor> <expr> are all non-terminals ending at terminal: id sumit kumar answered Dec 21, 2014 sumit kumar comment Share Follow See all 3 Comments See all 3 3 Comments reply sumit_62 commented Dec 22, 2014 reply Follow Share so that means <expr> is also considered as non terminal in the answer? 0 votes 0 votes sumit kumar commented Dec 22, 2014 reply Follow Share yes!!of course 0 votes 0 votes radha gogia commented Dec 6, 2015 reply Follow Share Say I have a production like E-->E+T T-->T*T/id .Now are these symbols + and * not terminals , shouldn't they be since while constructing a parse tree we draw these symbols as the leaves of the tree only . 0 votes 0 votes Please log in or register to add a comment.