diff options
| author | Patrick Schönberger | 2021-08-11 18:02:56 +0200 |
|---|---|---|
| committer | Patrick Schönberger | 2021-08-11 18:02:56 +0200 |
| commit | 17860defa84c6d8bc0e8bc088a7e09361f17db07 (patch) | |
| tree | 87d602a2d4419307e73928bc1993a6295ba2cb39 /src/repr.h | |
| parent | 3715a3f575b615f66e8ea7e57f83849e8bae4deb (diff) | |
| download | toc-17860defa84c6d8bc0e8bc088a7e09361f17db07.tar.gz toc-17860defa84c6d8bc0e8bc088a7e09361f17db07.zip | |
structs and functions in ctx
Diffstat (limited to 'src/repr.h')
| -rw-r--r-- | src/repr.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -39,8 +39,11 @@ struct Stmt; struct Context
{
+ std::optional<std::string> name;
std::shared_ptr<Context> parent;
std::vector<Variable> variables;
+ std::vector<Function> functions;
+ std::vector<Struct> structs;
};
enum class TypeModifierType
@@ -110,16 +113,12 @@ struct Namespace {
std::string name;
std::shared_ptr<Context> ctx;
- std::vector<Struct> structs;
- std::vector<Function> functions;
std::vector<Namespace> namespaces;
};
struct Program
{
std::shared_ptr<Context> ctx;
- std::vector<Struct> structs;
- std::vector<Function> functions;
std::vector<Namespace> namespaces;
};
|
