2025-09-30 21:29:06 +10:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include "../defs/defs.h"
|
|
|
|
|
|
|
|
|
|
namespace data {
|
2025-10-02 12:41:11 +10:00
|
|
|
extern std::vector<std::map<std::string, Value>> scopes;
|
|
|
|
|
extern std::map<std::string, Function> functions;
|
2025-10-04 20:37:55 +10:00
|
|
|
extern std::map<std::string, Struct> structs;
|
2025-09-30 21:29:06 +10:00
|
|
|
void modifyValue(std::string key, Value value);
|
|
|
|
|
Value getValue(std::string key);
|
2025-10-02 12:41:11 +10:00
|
|
|
void pushScope();
|
|
|
|
|
void popScope();
|
|
|
|
|
void initScopes();
|
2025-09-30 21:29:06 +10:00
|
|
|
}
|