mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
interpreter_tree first iteration
This commit is contained in:
parent
7f4cd5ee9a
commit
1ba132bb06
15 changed files with 1829 additions and 1 deletions
25
include/global_info.hpp
Normal file
25
include/global_info.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
// for clangd
|
||||
#include "symbols_info.hpp"
|
||||
|
||||
namespace info {
|
||||
|
||||
class GlobalInfo {
|
||||
public:
|
||||
GlobalInfo();
|
||||
|
||||
// ?? EnterNamespace / ExitNamespace ??
|
||||
// concurrent work ??
|
||||
// AddType, AddFunction
|
||||
// TODO
|
||||
private:
|
||||
std::unordered_map<std::string, NamespaceInfo> namespaces_;
|
||||
NamespaceInfo global_namespace_;
|
||||
// lock for concurrency ??
|
||||
};
|
||||
|
||||
} // namespace info
|
||||
Loading…
Add table
Add a link
Reference in a new issue