summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level0.cpp
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-11-24 13:22:55 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-11-24 13:22:55 -0800
commit9a14918abec434d8463e07635daef380ad630649 (patch)
treefa1a5200da88ad6065092b05dc063a8a80df8faa /starts/meaning-vm/level0.cpp
parent50be8bb8697b23ff469de142eaebe9666c2a9537 (diff)
downloadstandingwithresilience-9a14918abec434d8463e07635daef380ad630649.tar.gz
standingwithresilience-9a14918abec434d8463e07635daef380ad630649.zip
breaking into levels
Diffstat (limited to 'starts/meaning-vm/level0.cpp')
-rw-r--r--starts/meaning-vm/level0.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/starts/meaning-vm/level0.cpp b/starts/meaning-vm/level0.cpp
new file mode 100644
index 0000000..71c18b7
--- /dev/null
+++ b/starts/meaning-vm/level0.cpp
@@ -0,0 +1,25 @@
+#include "level-0/level-0.hpp"
+
+#include <iostream>
+
+using namespace intellect::level0;
+
+int main()
+{
+ ref a = alloc();
+ ref b = alloc();
+ ref c = alloc();
+ ref d = alloc();
+ ref e = alloc();
+
+ ref skip = alloc();
+
+ a->link(b, c);
+ a->link(d, e);
+ e->link(b, a);
+ c->link(b, e);
+
+ std::cout << a.dump(skip, skip) << std::endl;
+
+ return 0;
+}