diff options
| author | Patrick Schönberger | 2021-08-12 10:32:51 +0200 |
|---|---|---|
| committer | Patrick Schönberger | 2021-08-12 10:32:51 +0200 |
| commit | 66a27d2fc7c1ad4e97de76d4982168a0fed9920a (patch) | |
| tree | ca3f0e5d740214bc7ecd85949a278e64e49898b7 /src/repr.h | |
| parent | c4231c6faf4e1b4650b075c641b0bb8c053739e4 (diff) | |
| download | toc-66a27d2fc7c1ad4e97de76d4982168a0fed9920a.tar.gz toc-66a27d2fc7c1ad4e97de76d4982168a0fed9920a.zip | |
comments
Diffstat (limited to 'src/repr.h')
| -rw-r--r-- | src/repr.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -8,6 +8,8 @@ using namespace std;
+// This contains a 1 to 1 representation of the defined language
+
struct Type;
struct Variable;
struct Body;
@@ -37,6 +39,9 @@ struct AssignStmt; struct ReturnStmt;
struct Stmt;
+// Context is a collection of everything that can be defined in a namespace
+// that is reused for bodies so that the hierarchy can be walked uniformly
+// both up and down using the parent variable
struct Context
{
std::optional<std::string> name;
@@ -184,6 +189,8 @@ struct DotExpr std::string identifier;
};
+// OperatorType enum with corresponding string array to lookup
+// enum from string and the other way round
enum class PrefixOperatorType
{
Plus, Minus, Increment, Decrement,
|
