All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class duckMachine.operatingSystem.ObjectFile

java.lang.Object
   |
   +----duckMachine.operatingSystem.ObjectFile

public class ObjectFile
extends Object
A class to represent object files and their associated operations. The format of object is the following: # Object file format: Every line should be:
# address instruction
# or
# address data
# or consisting of white space only
# Obviously # marks the beginning of a comment.
Here is an example:
0 out 10
1 increment 10
2 out 10
3 increment 10
4 out 10
5 halt
10 42


Constructor Index

 o ObjectFile(String)

Method Index

 o parse()

Constructors

 o ObjectFile
 public ObjectFile(String f) throws ObjectFileE
Throws: ObjectFileE
If file is not found.

Methods

 o parse
 public Enumeration parse() throws ObjectFileE
Throws: ObjectFileE
If an error occurs during parsing.

All Packages  Class Hierarchy  This Package  Previous  Next  Index