18 lines
431 B
C++
18 lines
431 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
#include "../defs/defs.h"
|
|
|
|
namespace data {
|
|
extern std::vector<std::map<std::string, Value>> scopes;
|
|
extern std::map<std::string, Function> functions;
|
|
extern std::map<std::string, Struct> structs;
|
|
void modifyValue(std::string key, Value value);
|
|
Value getValue(std::string key);
|
|
void pushScope();
|
|
void popScope();
|
|
void initScopes();
|
|
}
|