GATE CSE
First time here? Checkout the FAQ!
x
0 votes
72 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 (32.9k points)   | 72 views

Please log in or register to answer this question.



Top Users Aug 2017
  1. ABKUNDAN

    4660 Points

  2. Bikram

    4366 Points

  3. akash.dinkar12

    3258 Points

  4. rahul sharma 5

    3042 Points

  5. manu00x

    2682 Points

  6. makhdoom ghaya

    2410 Points

  7. just_bhavana

    2100 Points

  8. Tesla!

    1918 Points

  9. stblue

    1682 Points

  10. joshi_nitish

    1608 Points


24,928 questions
32,024 answers
74,385 comments
30,113 users