9 Qs · since 2016 · 16 marks · 0.6 marks/paperStandard yield
Syntax-Directed Translation (SDT/SDD) in GATE CS is consistently tested through two primary angles: theoretical classification (identifying S-attributed vs. L-attributed definition… Guide
Topic guide
Syntax-Directed Translation (SDT/SDD) in GATE CS is consistently tested through two primary angles: theoretical classification (identifying S-attributed vs. L-attributed definitions and parser traversal compatibility) and concrete evaluation (tracing attribute evaluation or action execution for a given input string). Questions routinely evaluate precedence, associativity, base conversions (e.g., binary fractions), type checking, or parse-reduction action sequences.
Attribute Classification (S-attributed vs. L-attributed)
common · MCQ · 1.5 marks · 2026, 2025, 2020
Given a set of production rules paired with attribute assignment equations, determine whether each rule or the overall SDD is S-attributed, L-attributed, or neither based on attribute dependencies.
Input String Evaluation / Attribute Value Computation
common · NAT · 2 marks · 2024, 2023, 2022
Given an SDD defining synthesized (and optionally inherited) numerical or structural values, construct the parse tree for a specific input string and compute the final synthesized attribute at the root.
Side-Effect / Bottom-Up Parsing Action Sequence
occasional · MCQ · 2 marks · 2016
Given an SDTS with inline print statements or symbol table updates, trace the execution sequence triggered during shift-reduce parsing (post-order reductions) of an input token stream.
Semantic Analysis & Type Checking Correctness
occasional · MSQ · 2 marks · 2026, 2021
Evaluate multi-rule SDTs for language equivalence, type declarations, or semantic actions to identify logic bugs (e.g., missing symbol-table lookup vs. hardcoded types) or compare equivalent semantic schemes.
Theoretical SDD Properties & Traversal MSQ
occasional · MSQ · 1 marks · 2024
Multi-statement questions testing foundational definitions: evaluation order (depth-first/left-to-right), LR(1) bottom-up evaluation capabilities, and side effects in attribute grammars.
S-Attributed Definition Condition
for production
Used when verifying that an SDD contains only synthesized attributes computed exclusively from children nodes.
L-Attributed Dependency Rule
for production
Used when checking whether inherited attributes of an RHS symbol depend strictly on parent inherited attributes or attributes of symbols strictly to its left ().
Binary Fractional Synthesis Recurrence
Used during bottom-up synthesized evaluation of right-recursive fractional bit strings.
Shift from pure single-answer bottom-up print tracing to deep attribute computations (custom arithmetic, fractional conversions) formatted as numerical answer type (NAT).
2023, 2022, 2016
Rise of multi-select questions (MSQ) testing conceptual nuance (e.g., L-attributed traversals, grammar equivalence, symbol table operations).
2026, 2024
Formalization of classification questions into multi-rule dependency checks assessing LHS-to-RHS and RHS-sibling dependency directions.
2025, 2020
Easy: Direct syntactic check of single-rule attribute dependencies (S vs. L-attributed). Medium: Tracing numerical value computations with operator precedence/associativity or fractional recursions; tracing reduction-action sequences. Hard: Multi-grammar comparisons evaluating symbol table side effects alongside formal attribute classifications in an MSQ format.