Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Compiler Design Syntax Analysis Syntax Analyzer
A shift reduce parser carries out the action specified within braces immediately after reducing with the corresponding rule of grammar.
S → aaX {Print “2”}
S → b {Print”3”}
X → Sc {Print”1”}
What is the translation of “aaaabcc” using the syntax directed translation scheme described by the above rules?
1
32311
2
31212
3
12321
4
23131