aboutsummaryrefslogtreecommitdiff
path: root/include/cps/Lexer.h
diff options
context:
space:
mode:
authorov-4 <hausemasterstream@gmail.com>2026-01-30 02:06:37 +0000
committerov-4 <hausemasterstream@gmail.com>2026-01-30 02:06:37 +0000
commit766a4b8e5236bffb40984439a79186c5ee823ff8 (patch)
treea4226690b4b95c916908afa0047899ff60e63c81 /include/cps/Lexer.h
parent943ed04b775949e8bc4948bcb8d762a32ab14f76 (diff)
Added runtime check for array index and division
Diffstat (limited to 'include/cps/Lexer.h')
-rw-r--r--include/cps/Lexer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cps/Lexer.h b/include/cps/Lexer.h
index a7a6218..237f76a 100644
--- a/include/cps/Lexer.h
+++ b/include/cps/Lexer.h
@@ -44,11 +44,13 @@ enum Token {
};
class Lexer {
+ int CurrentLine = 1;
public:
std::string IdentifierStr;
int NumVal;
int gettok();
+ int getLine() const { return CurrentLine; }
};
}