Release AiraLang v1.4.4: Windows UTF-8 fix, system module, and VS Code extension

This commit is contained in:
Adam Eehan committed 2026-09-18 12:01:15 +05:30
1 parent 79bf41cb56
commit 580f420abf
14 files changed
+659 -35

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
# AiraLang Language Support for VS Code
Official Visual Studio Code extension for **AiraLang** — the modern systems, AI, and cybersecurity programming language created by **Adam Eehan (Founder & CEO, Aira Group of Technology)**.
## ✨ Features
* **Syntax Highlighting:** Complete token colorization for `.aira` files (`say`, `let`, `fn`, `import`, modules, operators, comments).
* **Language Configuration:** Auto-closing brackets, braces, strings, and `#` / `//` comment toggling.
* **Intelligent Snippets:** Instant scaffolding for `say`, `let`, `fn`, `import "ai"`, `import "system"`, and `import "android"`.
## 🚀 How to Install
Place this folder inside your VS Code extensions folder:
- **Windows:** `%USERPROFILE%\.vscode\extensions\adameehan.airalang-1.0.0`
- **Linux / Mac:** `~/.vscode/extensions/adameehan.airalang-1.0.0`
@@ -0,0 +1,25 @@
{
"comments": {
"lineComment": "#",
"blockComment": ["/*", "*/"]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
+46
View File
@@ -0,0 +1,46 @@
{
"name": "airalang",
"displayName": "AiraLang Language Support",
"description": "Rich language support, syntax highlighting, and code snippets for AiraLang.",
"version": "1.0.0",
"publisher": "adameehan",
"author": {
"name": "Adam Eehan (Aira Group of Technology)"
},
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Programming Languages",
"Snippets"
],
"keywords": [
"airalang",
"aira",
"cyber",
"systems"
],
"contributes": {
"languages": [
{
"id": "airalang",
"aliases": ["AiraLang", "aira"],
"extensions": [".aira"],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "airalang",
"scopeName": "source.aira",
"path": "./syntaxes/airalang.tmLanguage.json"
}
],
"snippets": [
{
"language": "airalang",
"path": "./snippets/snippets.json"
}
]
}
}
+78
View File
@@ -0,0 +1,78 @@
{
"Say Statement": {
"prefix": "say",
"body": [
"say \"${1:Hello, World!}\";"
],
"description": "Output text using AiraLang say statement"
},
"Variable Declaration": {
"prefix": "let",
"body": [
"let ${1:variable} = ${2:value};"
],
"description": "Declare a new variable in AiraLang"
},
"Function Definition": {
"prefix": "fn",
"body": [
"fn ${1:name}(${2:params}) {",
"\t${3:// code here}",
"\treturn ${4:null};",
"}"
],
"description": "Define a function in AiraLang"
},
"If-Else Statement": {
"prefix": "ifelse",
"body": [
"if (${1:condition}) {",
"\t${2:// true branch}",
"} else {",
"\t${3:// false branch}",
"}"
],
"description": "If-Else condition in AiraLang"
},
"Import AI Module": {
"prefix": "impai",
"body": [
"import \"ai\";",
"ai.set_key(\"${1:YOUR_API_KEY}\");",
"let reply = ai.ask(\"${2:Hello, Aira!}\");",
"say reply;"
],
"description": "Import and query AiraLang Universal AI module"
},
"Import System Module": {
"prefix": "impsys",
"body": [
"import \"system\";",
"let info = system.info();",
"say \"Platform: \" + info.platform;",
"say \"CPU: \" + info.cpu.name;",
"say \"GPU: \" + info.gpu.name;",
"say \"RAM: \" + info.ram.used_gb + \" / \" + info.ram.total_gb + \" GB\";"
],
"description": "Import and inspect PC system and GPU metrics"
},
"Import Android Module": {
"prefix": "impdroid",
"body": [
"import \"android\";",
"let audit = android.audit_device();",
"say \"Device Posture: \" + audit.posture;",
"say \"Security Score: \" + audit.security_score + \"/100\";"
],
"description": "Import and audit Android device security"
},
"Proposal Prank Module": {
"prefix": "impprop",
"body": [
"import \"proposal\";",
"proposal.ask(\"${1:Do you love me?}\");",
"say \"${2:Mee too!}\";"
],
"description": "AiraLang Proposal prank timeout loop"
}
}
@@ -0,0 +1,123 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "AiraLang",
"scopeName": "source.aira",
"patterns": [
{ "include": "#comments" },
{ "include": "#strings" },
{ "include": "#numbers" },
{ "include": "#keywords" },
{ "include": "#builtins" },
{ "include": "#operators" },
{ "include": "#functions" }
],
"repository": {
"comments": {
"patterns": [
{
"name": "comment.line.number-sign.aira",
"match": "#.*$"
},
{
"name": "comment.line.double-slash.aira",
"match": "//.*$"
},
{
"name": "comment.block.aira",
"begin": "/\\*",
"end": "\\*/"
}
]
},
"strings": {
"patterns": [
{
"name": "string.quoted.double.aira",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.aira",
"match": "\\\\."
}
]
},
{
"name": "string.quoted.single.aira",
"begin": "'",
"end": "'",
"patterns": [
{
"name": "constant.character.escape.aira",
"match": "\\\\."
}
]
}
]
},
"numbers": {
"patterns": [
{
"name": "constant.numeric.aira",
"match": "\\b\\d+(\\.\\d+)?\\b"
}
]
},
"keywords": {
"patterns": [
{
"name": "keyword.control.aira",
"match": "\\b(if|else|while|for|in|return|break|continue)\\b"
},
{
"name": "keyword.declaration.aira",
"match": "\\b(let|fn|class|new|import)\\b"
},
{
"name": "keyword.other.say.aira",
"match": "\\b(say)\\b"
},
{
"name": "constant.language.aira",
"match": "\\b(true|false|null|this)\\b"
}
]
},
"builtins": {
"patterns": [
{
"name": "support.class.module.aira",
"match": "\\b(system|hardware|android|droidsec|ai|sec|proposal|http|file|os|math|time|json|crypto|string|sqlite|net|thread)\\b"
}
]
},
"operators": {
"patterns": [
{
"name": "keyword.operator.arithmetic.aira",
"match": "(\\+|\\-|\\*|\\/|\\%)"
},
{
"name": "keyword.operator.comparison.aira",
"match": "(==|!=|≠|<=|>=|<|>)"
},
{
"name": "keyword.operator.logical.aira",
"match": "(&&|\\|\\||!|\\band\\b|\\bor\\b|\\bnot\\b)"
},
{
"name": "keyword.operator.assignment.aira",
"match": "(=)"
}
]
},
"functions": {
"patterns": [
{
"name": "entity.name.function.aira",
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*(?=\\()"
}
]
}
}
}