feat(v1.5.0): Full-Stack Web Engine, F-Strings, Cyber OSINT & Terminal UI Suite

This commit is contained in:
Adam Eehan committed 2026-10-12 12:41:20 +05:30
1 parent 619492bdbf
commit f90ea8cdd1
13 files changed
+766 -26

No files matched your search

+11
View File
@@ -341,6 +341,17 @@ class Evaluator:
elif nodetype == "LiteralNode":
return node.value
elif nodetype == "FStringNode":
result_pieces = []
for is_expr, item in node.parts:
if is_expr:
val = self.eval_node(item, env)
result_pieces.append(str(val) if val is not None else "null")
else:
result_pieces.append(item)
return "".join(result_pieces)
elif nodetype == "IdentifierNode":
return env.get(node.name, node.line)