From 8e368b67de60442c483bd9def7036e52562ccc81 Mon Sep 17 00:00:00 2001
From: AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>
Date: Mon, 22 Nov 2021 16:30:45 +0000
Subject: Improved error handing and added logical statements

---
 src/Compiler/Token.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/Compiler/Token.java')

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;
 
     }
 
-- 
cgit v1.2.3