diff options
| author | student <student@localhost> | 2018-02-12 12:01:53 -0500 |
|---|---|---|
| committer | student <student@localhost> | 2018-02-12 12:01:53 -0500 |
| commit | c25b68c6b24d86b7d1169ad4ec1e619d79a2b38d (patch) | |
| tree | dc9579836d6856cf93ae7f682446a4e69a94e37f /base/src/bjc/dicelang/scl/IntSCLToken.java | |
| parent | d7af27dab45dd6f82c27519e6b4fd2faa162f884 (diff) | |
Split SCLToken into subclasses.
Instead of one class with a lot of fields whose state varies based on an
enum, we now have a hierarchy of classes that does the same in a more
obvious manner.
Diffstat (limited to 'base/src/bjc/dicelang/scl/IntSCLToken.java')
| -rw-r--r-- | base/src/bjc/dicelang/scl/IntSCLToken.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/base/src/bjc/dicelang/scl/IntSCLToken.java b/base/src/bjc/dicelang/scl/IntSCLToken.java new file mode 100644 index 0000000..b90aa83 --- /dev/null +++ b/base/src/bjc/dicelang/scl/IntSCLToken.java @@ -0,0 +1,18 @@ +package bjc.dicelang.scl; + +public class IntSCLToken extends SCLToken { + /* Used for ILIT */ + public long intVal; + + /* Create a new token. */ + public IntSCLToken(final Type typ) { + super(typ); + } + + /* Create a new token. */ + public IntSCLToken(final long iVal) { + super(Type.ILIT); + + intVal = iVal; + } +}
\ No newline at end of file |
