feat(s1duo): implement pure C AiraLang S1 Duo native engine with military-grade security hardening

This commit is contained in:
Adam Eehan committed 2026-10-28 12:13:33 +05:30
1 parent 97146cb5c3
commit 8ac2b4c48e
25 files changed
+3681 -1

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#ifndef AIRA_ENV_H
#define AIRA_ENV_H
#include "value.h"
typedef struct Environment {
struct Environment* parent;
char** names;
AiraValue* values;
int count;
int capacity;
uint32_t canary;
} Environment;
Environment* env_new(Environment* parent);
void env_free(Environment* env);
void env_define(Environment* env, const char* name, AiraValue val);
bool env_get(Environment* env, const char* name, AiraValue* out_val);
bool env_assign(Environment* env, const char* name, AiraValue val);
#endif /* AIRA_ENV_H */