feat(v1.4.2): add Unicode math not-equal (≠) operator support and expand README with full data types and operators reference guide
This commit is contained in:
1 parent
6d031d4fa9
commit
7d6e4623e0
4 files changed
+56
-5
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ from lexer import Lexer
|
||||
from parser import Parser
|
||||
from evaluator import Evaluator
|
||||
|
||||
VERSION = "1.4.1 (Aira Cyber & AI Edition)"
|
||||
VERSION = "1.4.2 (Aira Cyber & AI Edition)"
|
||||
AUTHOR = "Adam Eehan (Aira Group of Technology)"
|
||||
|
||||
ASCII_BANNER = f"""\033[1;36m
|
||||
|
||||
+1
-1
@@ -493,7 +493,7 @@ class Evaluator:
|
||||
if node.op == "/": return left / right
|
||||
if node.op == "%": return left % right
|
||||
if node.op == "==": return left == right
|
||||
if node.op == "!=": return left != right
|
||||
if node.op in ("!=", "≠"): return left != right
|
||||
if node.op == "<": return left < right
|
||||
if node.op == ">": return left > right
|
||||
if node.op == "<=": return left <= right
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ TOKEN_TYPES = [
|
||||
("DIV_ASSIGN", r"/="),
|
||||
("MOD_ASSIGN", r"%="),
|
||||
("EQ_EQ", r"=="),
|
||||
("NOT_EQ", r"!="),
|
||||
("NOT_EQ", r"(!=|≠)"),
|
||||
("LTE", r"<="),
|
||||
("GTE", r">="),
|
||||
("ASSIGN", r"="),
|
||||
|
||||
Reference in new issue
Block a user