Conversion of CFG in GNF to NPDA

Procedure

Observe the given table with components and corresponding description

table

To convert the given CFG S → aTb | b ,T → aT | ϵ into NPDA follow the steps given below

click on the start button to start the simulation

start

Step 1: Push $ as the stack symbol

step1

Step 2: Push 'S'

step2

Step 3: Self-loop state

step3

Step 4 :Pop $

step4