Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
0 votes

In the following gate 2021 question from compiler design,

suppose option C is modified as : 

The actions can be used to type-check syntactically correct boolean variable declarations BUT NOT boolean expressions.

According to me, for boolean variable declarations and NOT boolean expressions, the value of ID is directly fetched as lexeme using the lexical analyzer instead of having any separate semantic rule using the production D → bool ID.


Then, will option C be correct in addition to option B ? 

in Compiler Design 5 points 13 views

Please log in or register to answer this question.