aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp29
1 files changed, 3 insertions, 26 deletions
diff --git a/main.cpp b/main.cpp
index 032a812..0e73d6f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -4,35 +4,12 @@
#include "Parser.h"
#include "Circuit.h"
+#include "prut.h"
+
using std::cout;
using std::endl;
using std::ifstream;
-#include "Node.h"
-#include "GateAnd.h"
-
-int main() {
- // Observer ob();
- Net n, n1, o;
- Node *g = new GateAnd;
- try {
- g->addInput(&n);
- g->addInput(&n1);
- g->setOutput(&o);
-
- // o.setLevel(UNDEFINED);
- n.setLevel(HIGH);
- n1.setLevel(HIGH);
- int level = 22;
- level = o.getLevel();
- printf("hello world! %d\n", level);
- } catch(Exception& e) {
- std::cerr << e.what() << '\n';
- }
- return 0;
-}
-
-/*
int main(int argc, char** argv) {
Parser main_parser;
Circuit circuit;
@@ -48,6 +25,7 @@ int main(int argc, char** argv) {
cout << "Parser error: " << e.what() << endl;
return EXIT_FAILURE;
}
+ prutprint("parsing done!");
try {
circuit.sim();
@@ -61,4 +39,3 @@ int main(int argc, char** argv) {
return EXIT_SUCCESS;
}
-*/ \ No newline at end of file