summaryrefslogtreecommitdiffstats
path: root/src/Compiler/Token.java
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-22 16:30:45 +0000
committerAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-22 16:30:45 +0000
commit8e368b67de60442c483bd9def7036e52562ccc81 (patch)
tree947d775285ad2df464177df8ec9e1d63e99cae0d /src/Compiler/Token.java
parentab5584190b83a8cda9cbb3469ce841dbaa3aa38a (diff)
downloadesotericFORTRAN-8e368b67de60442c483bd9def7036e52562ccc81.tar.gz
esotericFORTRAN-8e368b67de60442c483bd9def7036e52562ccc81.zip
Improved error handing and added logical statements
Diffstat (limited to 'src/Compiler/Token.java')
-rw-r--r--src/Compiler/Token.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Compiler/Token.java b/src/Compiler/Token.java
index 4608a3d..0af2c34 100644
--- a/src/Compiler/Token.java
+++ b/src/Compiler/Token.java
@@ -7,12 +7,14 @@ public class Token {
public final TokenType type;
final String text;
final Object value;
+ final int line;
- Token(TokenType type, String text, Object value){
+ Token(TokenType type, String text, Object value,int line){
this.type=type;
this.text=text;
this.value=value;
+ this.line=line;
}