]> gitweb.ps.run Git - toc/blobdiff - src/repr.h
comments
[toc] / src / repr.h
index 959e74dfe891873eecfcdbf2671d003497f8bb95..569411c05db2315e7d1fd18c7b2a74b478ae07f7 100644 (file)
@@ -8,6 +8,8 @@
 \r
 using namespace std;\r
 \r
+// This contains a 1 to 1 representation of the defined language\r
+\r
 struct Type;\r
 struct Variable;\r
 struct Body;\r
@@ -37,6 +39,9 @@ struct AssignStmt;
 struct ReturnStmt;\r
 struct Stmt;\r
 \r
+// Context is a collection of everything that can be defined in a namespace\r
+// that is reused for bodies so that the hierarchy can be walked uniformly\r
+// both up and down using the parent variable\r
 struct Context\r
 {\r
   std::optional<std::string> name;\r
@@ -184,6 +189,8 @@ struct DotExpr
   std::string identifier;\r
 };\r
 \r
+// OperatorType enum with corresponding string array to lookup\r
+// enum from string and the other way round\r
 enum class PrefixOperatorType\r
 {\r
   Plus, Minus, Increment, Decrement,\r