From 766a4b8e5236bffb40984439a79186c5ee823ff8 Mon Sep 17 00:00:00 2001 From: ov-4 Date: Fri, 30 Jan 2026 02:06:37 +0000 Subject: Added runtime check for array index and division --- include/cps/Lexer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/cps/Lexer.h') 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; } }; } -- cgit v1.3.1-4-g156e