Implement all the bytecode classes listed in the table

Assignment Help Computer Engineering
Reference no: EM131905857

 

Assignment- The Interpreter

1. Overview

For this assignment you will be implementing an interpreter for the mock language X. Some code has been given to you to get you started.

Also attached to this assignment doc is the pages for explaining the components of the interpreter. The information in the pages should be sufficient to complete the assignment.

And as always, if there are any questions please ask them in slack AND in class. This promotes collaborative thinking which is important.

NOTE THIS IS AN INDIVIDUAL ASSIGNMENT but you can collaborate with other students.

Submission

You are required to submit your source code via GitHub, and documentation in PDF format as described in Documentation Guidelines into the documentation folder.

2. Requirements

1. Implement ALL the ByteCode classes listed in the table on page {129 or page 5 of this document}. Be sure to create the correct abstractions for the bytecodes. It is possible to have multiple abstractions within the set of byte codes classes.

2. Complete the implementation of the following classes

a.ByteCodeLoader
b.Program
c.RuntimeStack
d.Virtual Machine

The Interpreter and CodeTable class have already been implemented for you. The Interpreter class is the entry point to this project. All projects will be graded using this entry point.

3. Make sure that all variables have their correct modifiers. Projects with all members being public will lose points.

4. Make sure not to break encapsulation. Projects that contain objects or classes trying to access members that it should not be allowed to will lose points. For example, if a bytecode needs to access or write to the runtime stack, it should NOT be allowed to. It needs to request these operations from the virtual machine. Then the virtual machine will carry out the operation.

It is ill advised to take the naive approach and make a method in the virtual machine for each byte code, while it would work, this solution will produce a lot of duplicate code AND points will be deducted for this type of solution.

Notes about the attached pages.

• Some of the information in the attached pages may be out of date. BUT not much. For example, the pages call to use a vector for the runtime stack. Vectors in java, while they still exist are deprecated and new projects should not use them. You may use an ArrayList in its place.

Reference no: EM131905857

Questions Cloud

Identify the elements of an arrest : Identify the four elements of an arrest, and then give an example of each element. "A police officer may make an arrest any time he or she sees a crime being.
What is meant by the area of immediate control : What is meant by the "area of immediate control" where the police can search after an arrest? Does that phrase have a fixed meaning in terms of distance.
Describe how individuals in this country and various culture : You want to answer questions about prevalence, frequency, and duration (e.g. How often does the problem occur? How long has this been going on?
State the rules on police use of nondeadly force in felony : State the rules on police use of nondeadly force in felony and misdemeanor cases. What did Tennessee v. Garner say on police use of deadly force?
Implement all the bytecode classes listed in the table : Implement ALL the ByteCode classes listed in the table on page. Be sure to create the correct abstractions for the bytecodes.
The overall average weight of bag of fertilizer : The overall average weight of a bag of fertilizer is ______________pound, and the average range is _________________pound.
How do you plan to manage quality on your project : What are ways in which to improve quality? Examine 2-3 quality management/project management strategies.
Should you knock and announce before making an arrest : Assume you are a police officer and have a warrant to arrest a parolee (who is on parole for robbery) for parole violation and possession of drug paraphernalia.
Determine the bank bottom- line net income : Label each item, place it in the appropriate category, and determine the bank's bottom- line net income.

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