summaryrefslogtreecommitdiffstats
path: root/src/Compiler/Token.java
diff options
context:
space:
mode:
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;
}