summaryrefslogtreecommitdiff
path: root/src/tests/PowderInteractionMachine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/PowderInteractionMachine.cpp')
-rw-r--r--src/tests/PowderInteractionMachine.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/PowderInteractionMachine.cpp b/src/tests/PowderInteractionMachine.cpp
new file mode 100644
index 0000000..c2b37a2
--- /dev/null
+++ b/src/tests/PowderInteractionMachine.cpp
@@ -0,0 +1,21 @@
+#ifdef TEST
+
+#include <iostream>
+#include <fstream>
+#include <sstream>
+#include "pim/Parser.h"
+
+int main(int argc, char * argv[])
+{
+ std::ifstream file("test.p");
+
+ std::stringstream buffer;
+
+ buffer << file.rdbuf();
+ file.close();
+
+ pim::compiler::Parser * parser = new pim::compiler::Parser(buffer);
+
+ parser->Compile();
+}
+#endif \ No newline at end of file