Discuss the interface of a module that implements the stack

Assignment Help Computer Engineering
Reference no: EM131898608

Problem

1. Complete the design of the language recognizer. Use both TDN and GDN to describe your design. Describe what changes are needed to transform a two-pass solution into a one-pass solution.

2. Define the interface of a module that implements the abstract data-type STACK, where operation pop raises an exception if called to operate on an empty stack.

3. Suppose we are asked to build a cross-reference table for the variables appearing in a pro-gram. A cross-reference program is an aid to reconstructing documentation from other programs that are, by assumption, correct. Thus, according to the specification, it should never happen that a variable is used without or before being declared. For simplicity, we assume that the language does not provide rules specifying the scope of variables: All van- . able names are global. We design a cross-reference table Module CRT-an abstract object-that exports two operations:

(1) Procedure NOTIFY is called to insert a variable's name in the table, along with the number of the line on which the declaration of the variable occurred.

(2) Procedure OCCUR is called to record the occurrence of a variable in a statement, by specifying the variabl's name and the number of. the line on which the variable occurs. As part of the contract with client modules, we specify in the interface that NOTIFY can-not be called if a variable with the same namb is already in the cross-reference table. Also, OCCUR can be called only if the variable we are transmitting as a parameter has already

• been declared (i.e., it was in the cross-reference table).11ese protocols are consistent with , the 'assumption that the source program is Correct. Design a robust CRT module and provide its TDN description. Implement your design in a programming language your choice, assuming that suitable other modules drive CRT: . Discuss the pros and cons of the language as far as exception handling is concerned.

Reference no: EM131898608

Questions Cloud

Identify the manifest and latent functions : Identify the manifest, latent functions, and latent dysfunctions and discuss how the 5 major institutions might be impacted.
Why is it important in the study of religion : Select ONE (1) category from the completed World View Chart. Provide a rationale for choosing this category. What is compelling about this category?
Is it possible to speak of ethnic groups in america : According to the structural-functional perspective, stereotypes served an important communication function, helping them to compare and contrast groups.
Demonstrate the power of stereotypes : Which is the in-group, and what are the unifying values or the ascribed status that provides its solidarity?
Discuss the interface of a module that implements the stack : Discuss the interface of a module that implements the abstract data-type STACK, where operation pop raises an exception if called to operate on an empty stack.
Explore career options within counseling : Compete a career exploration on O*NET as preparation for the Counseling Career Outline assignment.
Describe the uses relation among the modules we introduced : Describe the USES relation among the modules we introduced to represent the stepwise refinement illustrated in and show the module structure, using GDN.
What main traits and behaviors of your racial group : How do you feel when your racial or ethnic group is wrongly depicted in traditional mass media?Is your racial or ethnic group socially stereotyped in the media?
Discuss the issue by giving examples in c pascal or ada : Perform a complete recompilation (i.e., a compilation of all the modules)? Discuss the issue by giving examples in C, Pascal, Modula-2, Java, C++, or Ada.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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