Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
syntactic directed definition
skyby
asked
in
Compiler Design
Dec 14, 2017
436
views
0
votes
0
votes
if any production of given grammar is
A → ε {A.v = 0}
then A.v is ?
a) inherited attribute
b) synthesized attribute
compiler-design
syntax-directed-translation
skyby
asked
in
Compiler Design
Dec 14, 2017
by
skyby
436
views
answer
comment
Follow
share this
share
3 Comments
by
Anu007
commented
Dec 14, 2017
reply
Follow
share this
It is synthesized attribute and inherited too.
0
0
by
skyby
commented
Dec 15, 2017
reply
Follow
share this
any reason (reference to book) , 'cause i've seen synthesized attribute as an answer in one of the test series
0
0
by
anonymous
commented
Oct 9, 2018
reply
Follow
share this
only synthesized here there is no inheritation at all .
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
0
votes
It's both Synthesized and Inherited.
Synthesized evaluates value from parent and Inherited evaluates both from parent and siblings to the left.
PiratedVirus
answered
Jun 15, 2018
by
PiratedVirus
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
1
answer
1
radha gogia
asked
in
Compiler Design
May 6, 2018
1,697
views
Convert the following L-attributed definition to S-attributed definition .
E->TE' E'->*T { printf('*') ;} E' | epsilon T-> id {printf (id.name) ;} A) E->E*T | T {printf('*');} T->id {printf(id.name);} B) E->TE' E'->* ... ;T*E {printf('*');} E->T T->id {printf (id.name) ;} D) None of these Please explain precisely .
radha gogia
asked
in
Compiler Design
May 6, 2018
by
radha gogia
1.7k
views
compiler-design
syntax-directed-translation
4
votes
4
votes
0
answers
2
saxena0612
asked
in
Compiler Design
Nov 12, 2017
4,264
views
L attributed Definition
I read from Dragon Book that Syntax directed translation is used for type checking for instance where performing some reductions and other operation on the string or symbol we perform some additional operations. https://en.wikipedia.org/wiki/L- ... attributes definition I understand that but it could be Both because L attribute definition is both. Resolve my doubt !
saxena0612
asked
in
Compiler Design
Nov 12, 2017
by
saxena0612
4.3k
views
syntax-directed-translation
compiler-design
0
votes
0
votes
2
answers
3
Subhadeeppathak
asked
in
Compiler Design
Nov 28, 2022
438
views
Attributes in syntax directed translation
Attributes are said to be of two type, synthesised and inherited. What actually is an attribute? Why an attribute exist, how to define it?
Subhadeeppathak
asked
in
Compiler Design
Nov 28, 2022
by
Subhadeeppathak
438
views
syntax-directed-translation
compiler-design
0
votes
0
votes
0
answers
4
aditi19
asked
in
Compiler Design
Mar 29, 2019
1,257
views
Ullman(2e) Exercise-5.4.2 page no-336 Syntax Directed Translation
Rewrite the following SDT: A->A {a} B | AB {b} | 0 B->B {c} A | BA {d} | 1 so that the underlying grammar becomes non-left-recursive. Here a, b, c and d are actions, and 0 and 1 are terminals is my solution correct? A→ 0A’ A’→ {a} BA’ | B {b} A’ | ε B→ 1B’ B’→ {c} AB’ | A {d} B’ | ε
aditi19
asked
in
Compiler Design
Mar 29, 2019
by
aditi19
1.3k
views
compiler-design
syntax-directed-translation
left-recursion
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
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
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy