Go Back   TestMagic Forums > Test preparation > GRE Subject Tests > GRE Computer Science
Register FAQForum Rules Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-11-2003, 04:22 PM   #1 (permalink)
ushak
Eager!
 
Join Date: Oct 2003
Location: USA
Posts: 34
ushak has disabled reputation
What type of grammers do compilers prefer?
type = { SLR, LL , LR , etc)

ushak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Reddit!
Reply With Quote
Old 10-13-2003, 10:46 AM   #2 (permalink)
Laks
Eager!
 
Join Date: Oct 2003
Location: India
Posts: 35
Laks has disabled reputation
Hi Usha,

I would say the "compiler prefers" LALR (though this is pretty complex) .... this is what YACC uses.... so I guess this should be pretty optimal...

Cheers'
Laks
Laks is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Reddit!
Reply With Quote
Old 10-13-2003, 08:59 PM   #3 (permalink)
ushak
Eager!
 
Join Date: Oct 2003
Location: USA
Posts: 34
ushak has disabled reputation
I dont know the correct answer:
But this is what I found on some website:

Q: What types of grammars do compilers deal with?

A: LL is better than LR because it avoids some types of ambiguity.

Q: What types (level) of languages do compiler writers like?

A: Most compilers use CFG's, or even more restricted - LR1, etc.
The context-sensitive aspects are handled by various semantic
checks; e.g. side-effects.
ushak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

What you can do
You cannot post new threads
You cannot post replies
You cannot post attachments
You cannot edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:09 PM.

Contact TestMagic   TestMagic Forums      Archive   

Link to TestMagic   TestMagic Locations   Legal   Privacy

Partner Sites: GMAT Sentence Correction   SAT 2400

Content Relevant URLs by vBSEO 3.0.0
Copyright © 1998-2008 TestMagic
Ad Management by RedTyger

Scroll Up