Mod11 - Context Sensitive Grammar (PDA)
Mod11 - Context Sensitive Grammar (PDA)
Context Sensitive
Grammar
• Σ is input alphabet
• S is stack symbols
This means at state q1, if we encounter an input string ‘a’ and top
symbol of the stack is ‘b’, then we pop ‘b’, push ‘c’ on top of the stack
and move to state q2.
Terminologies Related to PDA
Instantaneous Description
The instantaneous description (ID) of a PDA is represented by
a triplet (q, w, s) where
• q is the state
• w is unconsumed input
• s is the stack contents
Turnstile Notation
•The "turnstile" notation is used for connecting pairs of ID's
that represent one or many moves of a PDA.
•The process of transition is denoted by the turnstile symbol
"⊢".
● Top-Down Parser: Top-down parsing starts from the top with the
start-symbol and derives a string using a parse tree.