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

Please log in or register to answer this question.

Top Users Jan 2017
  1. Debashish Deka

    8968 Points

  2. sudsho

    5326 Points

  3. Habibkhan

    4798 Points

  4. Bikram

    4532 Points

  5. Vijay Thakur

    4486 Points

  6. saurabh rai

    4222 Points

  7. Arjun

    4196 Points

  8. santhoshdevulapally

    3808 Points

  9. Sushant Gokhale

    3596 Points

  10. Kapil

    3486 Points

Monthly Topper: Rs. 500 gift card

19,212 questions
24,104 answers
53,150 comments
20,319 users