GATE CSE
First time here? Checkout the FAQ!
x
0 votes
35 views

Consider the following grammer for variable declarations:

  • <vardeel> $\rightarrow$ <vardeel><idlist> : <type>;
  • <vardeel> $\rightarrow \in$
  • <idlist> $\rightarrow$ <idlist>, id
  • <idlist> $\rightarrow$ id
  • <type> $\rightarrow$ integer
  • <type> $\rightarrow$ real


Write a syntax - directed translation scheme to install the identifiers into the symbol table. You must also issue appropriate error messages whereever necessary. Make suitable assumptions regarding procedures operating on the symbol table; you need not elaborate upon these procedures.

asked in Compiler Design by Veteran (29.1k points)   | 35 views

Please log in or register to answer this question.



Top Users Mar 2017
  1. rude

    4018 Points

  2. sh!va

    2994 Points

  3. Rahul Jain25

    2804 Points

  4. Kapil

    2608 Points

  5. Debashish Deka

    2104 Points

  6. 2018

    1414 Points

  7. Vignesh Sekar

    1336 Points

  8. Bikram

    1218 Points

  9. Akriti sood

    1186 Points

  10. Sanjay Sharma

    1016 Points

Monthly Topper: Rs. 500 gift card

21,446 questions
26,759 answers
60,943 comments
22,955 users