diff options
| author | ov-4 <hausemasterstream@gmail.com> | 2026-01-30 02:06:37 +0000 |
|---|---|---|
| committer | ov-4 <hausemasterstream@gmail.com> | 2026-01-30 02:06:37 +0000 |
| commit | 766a4b8e5236bffb40984439a79186c5ee823ff8 (patch) | |
| tree | a4226690b4b95c916908afa0047899ff60e63c81 /include/cps/Lexer.h | |
| parent | 943ed04b775949e8bc4948bcb8d762a32ab14f76 (diff) | |
Added runtime check for array index and division
Diffstat (limited to 'include/cps/Lexer.h')
| -rw-r--r-- | include/cps/Lexer.h | 2 |
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; } }; } |
