search
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
13 views

In the following gate 2021 question from compiler design,

https://gateoverflow.in/357425/gate-cse-2021-set-1-question-26

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.

...