upd: first version of atom
This commit is contained in:
@ -2,21 +2,26 @@
|
||||
#define NAMESCOPE_H
|
||||
|
||||
#include <any>
|
||||
#include <stack>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
class NameScopeClass {
|
||||
;
|
||||
class FucntionContainer {
|
||||
struct FunctionItem {
|
||||
;
|
||||
};
|
||||
};
|
||||
struct FunctionItem
|
||||
{
|
||||
;
|
||||
};
|
||||
struct FucntionContainer
|
||||
{
|
||||
;
|
||||
class VariableContainer {
|
||||
std::unordered_map<std::string, std::any> GlobalScope;
|
||||
std::stack<std::unordered_map<std::string, std::any>> StackScopes;
|
||||
|
||||
public:
|
||||
void CreateFrame();
|
||||
void DestroyFrame();
|
||||
std::any ReadVariable(const std::string &name);
|
||||
void WriteVariable(const std::string &name, const std::any &value);
|
||||
};
|
||||
#endif
|
Reference in New Issue
Block a user