Math, asked by malllokesh5153, 1 year ago

Difference between top down parser and bottom up parser

Answers

Answered by Selfiequeen6688
0

Answer:

Step-by-step explanation:

Here are a few more differences:

Top Down Parser

Parse tree is constructed top to down (starting symbol to terminals)

Decision - here the decision that the parser needs to make at every point of generating the parse tree is: ‘Which production (from the grammar) to use’

TDP follow left most derivation

Bottom Up Parser

Parse tree is constructed bottom to up (terminals to starting symbol)

Decision - here the decision that BUP needs to make while constructing the parse tree is: ‘When to reduce’ (when we see any terminals, do we reduce it or not)

BUP follow the reverse of right most derivation


aadityasinha2004: ????
DEVILNINJA: hi
Selfiequeen6688: I dont want to talk to u
Selfiequeen6688: @devilninja dont talk to me bye.......
Selfiequeen6688: And you also aditya sinha
Selfiequeen6688: Can u first tell me your age
Vritika2007: hiiii hey all of you sorry to interrupt in between,as this is a comment box not a chat box so please can u talk somewhere else where no one is joined there hope U understand please don't comment any more bye #Be brainly:YOUR BRAINLY MATE Vritika
Vritika2007: see i am 12 yrs old and i dont know r u making it a chat box .....
Similar questions