feat(v1.4.0): major upgrade - AI module, Sec recon engine, thread concurrency, functional array methods, and binary builder

This commit is contained in:
Adam Eehan committed 2026-09-07 12:09:40 +05:30
1 parent 8a1ac0b814
commit 9b9dc4de6a
7 files changed
+706 -13

No files matched your search

+13
View File
@@ -382,5 +382,18 @@ class Parser:
pairs.append((k, v))
self.expect("RBRACE")
return DictNode(pairs, tok.line)
if self.match("FN"):
fn_name = None
if self.current().type == "IDENTIFIER":
fn_name = self.expect("IDENTIFIER").value
self.expect("LPAREN")
params = []
if self.current().type != "RPAREN":
params.append(self.expect("IDENTIFIER").value)
while self.match("COMMA"):
params.append(self.expect("IDENTIFIER").value)
self.expect("RPAREN")
body = self.parse_block_or_statement()
return FunctionExprNode(fn_name, params, body, tok.line)
raise SyntaxError(f"AiraLang SyntaxError: Unexpected token '{tok.type}' ({repr(tok.value)}) at line {tok.line}, col {tok.col}")