Gate2019 cs Q46

  • Option : A
  • Explanation :
    SDT for inserting type information in the symbol table
    D → TL {L.idtype = T.stype}
    T → int {T.stype = int}
    T → float {T.stype = float}
    L → L1, id {L1.itype = L.itype}
    addtype(id.entry, L.itype)
    L → id addtype(id.entry, L.itype)
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *