about summary refs log tree commit diff stats
path: root/cpp/literate/tangle/boot.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-02-17 16:57:37 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-02-17 17:14:45 -0800
commit515309164793b2e03c15954bf8a89f0f288a7f2c (patch)
tree7fd7ed06fc7a7a772c6002cbb57b59faafcd6ada /cpp/literate/tangle/boot.cc
parent6042828bdea2a1ed1da1b0d2013a4479fb3d005a (diff)
downloadmu-515309164793b2e03c15954bf8a89f0f288a7f2c.tar.gz
775 - starting to reorg C++ mu to use layers
Diffstat (limited to 'cpp/literate/tangle/boot.cc')
-rw-r--r--cpp/literate/tangle/boot.cc63
1 files changed, 63 insertions, 0 deletions
diff --git a/cpp/literate/tangle/boot.cc b/cpp/literate/tangle/boot.cc
new file mode 100644
index 00000000..89f943a8
--- /dev/null
+++ b/cpp/literate/tangle/boot.cc
@@ -0,0 +1,63 @@
+// C++ style:
+//  no pointers except cell*
+//  use long as the default integer type; it's always large enough to hold pointers
+
+#define unused __attribute__((unused))
+
+#include<cstdio>
+#include<cstring>
+#include<cstdlib>
+#include<errno.h>
+#include<time.h>
+#include<math.h>
+#include<vector>
+using std::vector;
+#include<list>
+using std::list;
+#include<stack>
+using std::stack;
+#include<utility>
+using std::pair;
+
+#include<tr1/unordered_map>
+using std::tr1::unordered_map;
+#include<tr1/unordered_set>
+using std::tr1::unordered_set;
+#include<algorithm>
+
+#include<string>
+using std::string;
+const size_t NOT_FOUND = string::npos;
+
+#include<iostream>
+using std::istream;
+using std::ostream;
+using std::iostream;
+using std::cin;
+using std::cout;
+using std::cerr;
+
+#include<sstream>
+using std::stringstream;
+using std::istringstream;
+using std::ostringstream;
+
+#include<fstream>
+using std::ifstream;
+using std::ofstream;
+
+
+
+// interpreter decls
+
+#include "type_list"
+
+#include "function_list"
+
+// interpreter impl
+
+#include "file_list"
+
+// interpreter tests
+
+#include "test_file_list"