Question

What is the main purpose of Syntax-Directed Translation?

A To convert source code into an Abstract Syntax Tree (AST).
B To define the lexical structure of a language.
C To attach semantic rules or actions to grammar productions for generating intermediate code or performing semantic checks.
D To optimize the generated machine code.
E To manage the runtime stack.
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)