From 09e128ce98de793d22669255897e4b4816d0e53e Mon Sep 17 00:00:00 2001 From: _ov4 Date: Mon, 2 Feb 2026 09:02:39 +0000 Subject: Added logical operators --- lib/Lexer/Lexer.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Lexer/Lexer.cc') diff --git a/lib/Lexer/Lexer.cc b/lib/Lexer/Lexer.cc index ad7b4a1..d9eb09b 100644 --- a/lib/Lexer/Lexer.cc +++ b/lib/Lexer/Lexer.cc @@ -53,6 +53,10 @@ int Lexer::gettok() { if (IdentifierStr == "DIV") return tok_div; if (IdentifierStr == "MOD") return tok_mod; + + if (IdentifierStr == "AND") return tok_and; + if (IdentifierStr == "OR") return tok_or; + if (IdentifierStr == "NOT") return tok_not; if (IdentifierStr == "FUNCTION") return tok_function; if (IdentifierStr == "ENDFUNCTION") return tok_endfunction; -- cgit v1.3.1-4-g156e