diff options
author | Alfie Eagleton <67986414+TheAlfanator@users.noreply.github.com> | 2021-11-03 16:56:38 +0000 |
---|---|---|
committer | Alfie Eagleton <67986414+TheAlfanator@users.noreply.github.com> | 2021-11-03 16:56:38 +0000 |
commit | 85345d7d80eeb950ab64633ae1cb1f1c5dc87269 (patch) | |
tree | b353c985d4cdf51517a907efd9c6968a62db5655 /code/Interpreter2/src/Interpreter/Token.java | |
parent | 85e2726ddedd2981425c5ac07f7257bce1a6ddbf (diff) | |
download | esotericFORTRAN-85345d7d80eeb950ab64633ae1cb1f1c5dc87269.tar.gz esotericFORTRAN-85345d7d80eeb950ab64633ae1cb1f1c5dc87269.zip |
New Project Working + Report
Diffstat (limited to 'code/Interpreter2/src/Interpreter/Token.java')
-rw-r--r-- | code/Interpreter2/src/Interpreter/Token.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/code/Interpreter2/src/Interpreter/Token.java b/code/Interpreter2/src/Interpreter/Token.java new file mode 100644 index 0000000..0129b78 --- /dev/null +++ b/code/Interpreter2/src/Interpreter/Token.java @@ -0,0 +1,23 @@ +package Interpreter; + +public class Token { + + + //Stores the token type, the actual text and the runtime object + public final TokenType type; + final String text; + final Object value; + + + Token(TokenType type, String text, Object value){ + this.type=type; + this.text=text; + this.value=value; + + } + + @Override + public String toString() { + return type + " " + text + " " + value; + } +} |