-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (28 loc) · 1.2 KB
/
main.cpp
File metadata and controls
35 lines (28 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "src/interface/mainwindow.h"
#include "src/engine/computerengine.h"
#include "src/connector/connector.h"
#include "src/engine/expression/operator/operatoraritbinary.h"
#include "src/engine/expression/litterales/lexpression.h"
#include <QApplication>
#include <iostream>
//namespace Engine {
// class ActionConc : public Engine::ActionBinary
// {
// Expression* executeActionBinary(Expression* L1,Expression* L2) override
// {
// Lexpression* exp = dynamic_cast<Lexpression*>(L1);
// return new Lexpression(exp->getValue()+L2->toString());
// };
// ActionBinary* getCopy() const override { return new ActionConc; }
// };
//}
int main(int argc, char *argv[]){
QApplication a(argc, argv);
Mainwindow& w = *(new Mainwindow);
Engine::ComputerEngine e = Engine::ComputerEngine::getInstance();
Connector c(w,e);
// Engine::Expression* exp = e.getInstance().getExpressionManager().getFactory()->getOperatorFactory()->getOriginalOperatorFromString("+");
// Engine::OperatorAritBinary* op = dynamic_cast<Engine::OperatorAritBinary*>(exp);
// op->registerActionBinary("Linteger","Lexpression",new Engine::ActionConc);
return a.exec();
}