summaryrefslogtreecommitdiffstats
path: root/src/Compiler/Token.java
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-11-22 18:46:42 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-11-22 18:46:42 +0000
commitde5022e778c12a8b91b905473f2f74bf7172eac3 (patch)
tree4f16f1cb0b6b75c0e8975bb77f432071684e57ed /src/Compiler/Token.java
parent6557b7b080abab676cc15774bb4b4428e776cd03 (diff)
parent424ac34886895756525fbf5ddd704976e2e7d7dc (diff)
downloadesotericFORTRAN-de5022e778c12a8b91b905473f2f74bf7172eac3.tar.gz
esotericFORTRAN-de5022e778c12a8b91b905473f2f74bf7172eac3.zip
Merge branch 'main' of https://github.com/AlfieEagleton/EsotericProject into argparse
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;
}