Converting CFG to PDA for $S\to aSd|aBd\\B\to bBc|\varepsilon$

122 Views Asked by At

I need to build a pushdowm automata for the context-free-grammar

$$S\to aSd|aBd\\B\to bBc|\varepsilon$$

My attempt:

enter image description here

I'm not sure if my attempt is correct or not.