-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc46eb6
commit 0de8580
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Philip Roberts <[email protected]> | ||
* @author Paul Hoadley <[email protected]> | ||
*/ | ||
public class Code { | ||
final class Code { | ||
/** | ||
* The three-letter mnemonic for this instruction. | ||
* | ||
|
@@ -44,7 +44,7 @@ public class Code { | |
* the line number in the source file where this instruction | ||
* originated. | ||
*/ | ||
public Code(String mnemonic, int first, Object second, int lineno) { | ||
Code(String mnemonic, int first, Object second, int lineno) { | ||
this.mnemonic = Mnemonic.valueOf(mnemonic); | ||
this.first = first; | ||
this.second = second; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Philip Roberts <[email protected]> | ||
* @author Paul Hoadley <[email protected]> | ||
*/ | ||
public class Data implements Cloneable { | ||
final class Data implements Cloneable { | ||
/** The type of this datum. */ | ||
private int type; | ||
|
||
|
@@ -37,7 +37,7 @@ public class Data implements Cloneable { | |
* An <code>Object</code> representing the value of this datum. | ||
* @see Code#Code | ||
*/ | ||
public Data(int type, Object value) { | ||
Data(int type, Object value) { | ||
this.type = type; | ||
this.value = value; | ||
return; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @author Philip Roberts <[email protected]> | ||
* @author Paul Hoadley <[email protected]> | ||
*/ | ||
public class DataStack { | ||
final class DataStack { | ||
/** A container for the <code>Data</code> objects. */ | ||
private List<Data> data; | ||
|
||
|
@@ -25,7 +25,7 @@ public class DataStack { | |
/** | ||
* Default constructor. Assumes no limit on stack size. | ||
*/ | ||
public DataStack() { | ||
DataStack() { | ||
this(0); | ||
} | ||
|
||
|
@@ -35,7 +35,7 @@ public DataStack() { | |
* @param max | ||
* Maximum stack size. | ||
*/ | ||
public DataStack(int max) { | ||
DataStack(int max) { | ||
top = 0; | ||
|
||
data = new ArrayList<Data>(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Philip Roberts <[email protected]> | ||
* @author Paul Hoadley <[email protected]> | ||
*/ | ||
public enum Mnemonic { | ||
enum Mnemonic { | ||
/** | ||
* <code>CAL</code> | ||
*/ | ||
|