Please answer for all 3 questions. Thanks.
|
answer 35. shift operation:- in this operation the next input token is places on the parser's stack
as we can see that in this shift operation one token from the input is taken off and placed in the stack.
37. $ is used to indicate the end of input in every parser. so in LL also $ is used to show empty stack.
38. Non terminal - non terminal are the entities which can be expanded or they can be found at left hand side of a derivation. consider following example
exp -> n+n
exp->n*n-n
so as you can see that exp can be replaced by other terms so exp is a non terminal . similarly in our question too exp is a non terminal and this can be identified by the given grammar.
also + , - * are the operators so they can not be expanded so they are known as terminals . and $ is used for end of input.
I hope it'll help you so please give positive ratings.
Question 35 In a bottom up parser, what does it mean to perform a shift action? Answers: bits are...