QUESTION 16 Below is a final state PDA that accepts all arithmetic expressions over the alphabet (int.(.).+} Rule1: (0.(
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
QUESTION 16 Below is a final state PDA that accepts all arithmetic expressions over the alphabet (int.(.).+} Rule1: (0.(
QUESTION 16 Below is a final state PDA that accepts all arithmetic expressions over the alphabet (int.(.).+} Rule1: (0.(.?.push(().0), 0 is the start state Rule 2: (0,int,?,nop. 1) Rule 3: (1.).(.pop,1) Rule 4: (1,+,?,nop.0) Rule 5: (1.A,X,nop,final State). X is the start stack symbol What are the contents of the stack after the PDA follows transition rules: Rule 1. Rule 1, Rule 1, Rule 2 on the string (((int+int))) From Top to Bottom: (.(.(. (.X From Top to Bottom: (.(.X O From Top to Bottom: (.(.(.X. From Top to Bottom: (. (.(