Question

Please answer for all 3 questions. Thanks.

Question 35 In a bottom up parser, what does it mean to perform a shift action? Answers: bits are moved n digit positions to

Question 37 What does S represent in LL parser? Answers: dollar sign end of input marker terminal symbol nonienir yml Questio

Question 35 In a bottom up parser, what does it mean to perform a shift action? Answers: bits are moved n digit positions to the left/right values are popped from the parser's stack the next input token is placed onto the parser's stack lowercase characters are converted to uppercase characters bottom up parsers don't perform shifts, top down parsers do
Question 37 What does S represent in LL parser? Answers: dollar sign end of input marker terminal symbol nonienir yml Question 38 Which of the following is a non-Terminal? Answers: + 2 exp
0 0
Add a comment Improve this question Transcribed image text
Answer #1

answer 35. shift operation:- in this operation the next input token is places on the parser's stack

Stack Input Buffer id+id+id$ Parsing Action Shift Reduce by S ->id Shift Shift Sid $S +id+id$ id+id$

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.

Add a comment
Know the answer?
Add Answer to:
Question 35 In a bottom up parser, what does it mean to perform a shift action? Answers: bits are...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT