

Parsing in Compiler Design
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Rashmika Yadav
FREE Resource
Student preview

19 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is parsing in Compiler Design?
Back
Parsing is a process where a parser checks whether the input string follows the grammar rules and builds a parse tree.
2.
FLASHCARD QUESTION
Front
What is Top-Down Parsing?
Back
Top-Down Parsing starts from the start symbol and tries to derive the input string, building the parse tree from root to leaves.
3.
FLASHCARD QUESTION
Front
What is an example of Top-Down Parsing?
Back
Recursive Descent Parser.
4.
FLASHCARD QUESTION
Front
What is Bottom-Up Parsing?
Back
Bottom-Up Parsing starts from the input string and reduces it to the start symbol, building the parse tree from leaves to root.
5.
FLASHCARD QUESTION
Front
What is an example of Bottom-Up Parsing?
Back
Shift-Reduce Parser.
6.
FLASHCARD QUESTION
Front
What is the working approach of Top-Down Parsing?
Back
Top-Down Parsing uses Leftmost Derivation and expands non-terminals step by step.
7.
FLASHCARD QUESTION
Front
What is the working approach of Bottom-Up Parsing?
Back
Bottom-Up Parsing uses Rightmost Derivation in reverse and reduces strings step by step.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?