Looking for a Tutor Near You?

Post Learning Requirement »
x

Choose Country Code

x

Direction

x

Ask a Question

x

x
x
x
Hire a Tutor

Image Observer - Java, Shared Files - OS, Ambiguity - Compiler Design, JIT Compiler - Dot Net, Switching - Networking

Loading...

Published in: .Net | Java And J2EE | Networking
1,339 Views

I hope these notes are very helpful to you all and these are my seminar topics.

Mohanapriya M / Madurai

5 years of teaching experience

Qualification: B.Sc (Npr Group Of Colleges , Dindigul - 2015), M.Sc (Madurai Kamaraj University - [MKU], Madurai - 2017), M.Phil (Sri Krishna Arts and Science College (SKASC), Coimbatore - 2018)

Teaches: Basic Computer, Computer for official job, MS Office, School Level Computer, Computer, English, EVS, Science, Computer Science, Social Studies, B.Sc Tuition, IT, M.Sc Tuition, Cloud Computing, Data Structures, DBMS & RDBMS, PL/SQL, .Net, C / C++, Java And J2EE, Visual Basic

Contact this Tutor
  1. COMPILER *SOGN
  2. Ambiguity: A grammer G is said to be ambiguous if it has more than one parse tree for at least one string,
  3. oFor the string id+id-id
  4. Contd., The language generated by an ambigUOUS grammner is said to be inherently amniguous, Ambiguity in grammer is not good for a compiler construction, No method can detect and remove ambiguity automatically,but it can be removed by either rewriting the whole grammer without ambiguity,or by setting and following associativity and constraints,
  5. Associativity o If an operand has operators on both sides,the side on which the or takes this operand is decided by the associativity of those operators, Associativity
  6. Contd., olf the operation is Left- associative,then the operand will be taken by the left operator, olf the operation is right associative,the right operator will take the operand,
  7. Example Operations such as and Division are left associative, o id op id op id 'Itis the order of evalution in the same expression . Operations like Exponention are right associative
  8. o If two different operators share a common operand, the precedence Of operators decide which will take the operand, That is, 2+3*4 can have two different parse trees, (2+3)* 4 2+(3*4) By setting precedence amoung operators , this problem can be easily removed,
  9. Contd., Multipilaction has precedence over + Addition , so the expression 2+3*4 will always be interpreted as:
  10. Conclusion: o These methods decrease the chances of ambiguity in a language or its grammer,
  11. Reference ü www.tutorialspointocom ü https://tutorialspointocom compiler desiqn/quick q uide.html ü wwwodifrancoonet ü www.proqrarniz.com