Explain scanner and the scanning process

Assignment Help Operating System
Reference no: EM132334799

Assignment - COMPILER CONSTRUCTION

Objectives:

On completion of this course the student should be able to:

1.0 Know the differences among a compiler, assembler and an interpreter

2.0 Understand the compilation process.

3.0 Understand the concepts of grammar and languages.

4.0 Understand the functions of a scanner.

5.0 Understand the functions of recognizers.

6.0 Understand run time storage allocation.

7.0 Understand the function of error routine at each phase of compilation.

8.0 Understand code generation

1-2 Ability to understand:

• Compiler, assembler and interpreter

• The differences between compiler, interpreter and assembler

To:

-- Explain the functions of translating systems.

--Discuss the difference among the translating systems.

3-4 Ability to understand:

• The Compilation process and code optimization

To

.. Explain the compilation process: lexical analysis, syntax analysis, code reparation, code generation table of information and error routines.

--Explain code Optimization

5-6 Ability to understand:

• Grammar as a generating scheme for languages.

 To:

--Define grammar, languages.

--Describe a grammar as a generating scheme for languages.

--Explain the rule of formal grammar.

--Define: An alphabet, string, a phase.

--Write production or rewriting rules.

--Construct syntax trees for sentences.

--Differentiate between ambiguous and unambiguous sentences.

--Define the relations between contains transpose, reflexive transitive.

--Select operations: Head, first last, within.

--Construct transitive closures and relations

--Differentiate: context free, context sensitive and regular grammars.

7-8 Ability to understand:

• The scanning process and internal form of token

To

-- Explain scanner and the scanning process

--Break up a simple source code into tokens (variables, constants, labels, literals, operands and decimeters).

--Describe internal forms of tokens.

--Recognize tokens using state diagrams.

9-10 Ability to understand :

• Passing and passing techniques

To.

--Describe parsing techniques.

--Parse the out put of the scanner using syntax frees and polishes notations.

--Parse sentence applying. Top-down and Bottom – up methods.

--Recognize basic constructs such as triples, indirect trip-les, and quadruples.

11-12 Ability to understand:

• Run time storage allocation

To

--Discuss storage allocating techniques and storage requirements:-

--Explain how to calculate storage requirements.

--Calculate storage requirements for elementary data itemsarrays and strings

13-14 Ability to understand:

• The function of error routines at each phase of compilation

To :

--Explain error routines

--Explain scanning error routines

--Explain semantic error routines

15 Ability to understand:

• Processes of code generation and optimization

To

--Explain code generation

--Generate code for simple arithmetic expressions. Triples, indirect triple and quadruples.

--Explain code optimization.

Reference no: EM132334799

Questions Cloud

Breakdown the three tools : Breakdown the three tools (Continuous practice, Sleep, and Randomness) then select which tool best fits your style. Defend your answer adding external resources
What enzyme is found primarily in saliva : What enzyme is found primarily in saliva? What are the 3 parts of a human tooth? Most nutrient absorption occurs in which organ?
Employment as a veterans service representative : Explain what each of these mean to you and how you would apply these values if you were selected for employment as a Veterans Service Representative.
Body paragraph relate to the topic sentence : What are the characteristics of a strong body paragraphs, and how do the details in the body paragraph relate to the topic sentence
Explain scanner and the scanning process : COM 414 -COMPILER CONSTRUCTION- Explain scanner and the scanning process.Discuss storage allocating techniques and storage requirements.
Examine select body systems across levels of organization : Examine select body systems across levels of organization. Differentiate the role of the nervous system across functional divisions.
Evolution of management thought into the classical : What factors influenced the evolution of management thought into the Classical School, the first formal management theory?
Surprising truth about what motivates us : Have you ever worked at a company where you have received recognition for your contributions? Was the recognition one that you appreciated or did if fall flat?
Reduce of failure in creating new business : Describe strategies or others management concepts to reduce of failure in creating new business

Reviews

Write a Review

Operating System Questions & Answers

  Why the lynx companys functional system has been successful

Consider the following scenario involving a functional system used by the Lynx Company. The Lynx Company uses a functional system for their sales system. Identify five reasons why the Lynx Company's functional system has been successful (be sure t..

  As computers have evolved the complexity of operating

write 400-600 words that respond to the following questions with your thoughts ideas and comments. this will be the

  Assumptions and parameters affect sample size

If you do a quantitative study (SCHOOL ADVISORY PROGRAM) for your dissertation, you must estimate the sample size you will need in order to have a reasonable chance of finding a relationship among the variables stated in your research hypotheses (..

  Write about the dual roles for the operating system

The dual operating system roles by presenting a GUI to the user and hardware resources management are conflict one with another.

  How would you transform the ptp to jsp

Packet Transmission Problem (PTP) and Job Scheduling Problems (JSP) are known NP-complete problems. How would you transform the PTP to JSP

  1 consider the following set of processes with length of

1 consider the following set of processes with length of cpu burst given in millisecondsprocessburst

  Implement the storage portion of the tsupod

Create file test_tsuPod.cpp where you are going to test the functionality of the tsuPod program

  Match the os mechanisms on the left to the hardware support

Match the OS mechanisms on the left to the hardware support specific for each mechanism on the right.

  Describe the windows kernel

Describe the Windows kernel, including its two main components.

  Three-process 4 resource system

Give an example of a three-process 4 resource system that is in an unsafe state. Explain why it is in an unsafe state. How many more resources would need to be added to make it a safe state?

  What is implicit threading

What is implicit threading and what are the advantages and disadvantages of using them?

  Components and functions of a linux operating system

Define the necessary components and functions of a Linux operating system.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd