From 47b29326c7ed657b8a84f9441edf046b8e11e8e7 Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Mon, 28 Oct 2024 15:38:05 +0100 Subject: [PATCH] Try parsing a mult --- src/solver/modelConverter/convertorVisitor.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/solver/modelConverter/convertorVisitor.cpp b/src/solver/modelConverter/convertorVisitor.cpp index 1185d61489..317a426ea5 100644 --- a/src/solver/modelConverter/convertorVisitor.cpp +++ b/src/solver/modelConverter/convertorVisitor.cpp @@ -43,7 +43,8 @@ Nodes::Node* convertExpressionToNode( ExprParser::ExprContext* tree = parser.expr(); ConvertorVisitor visitor(registry, model); - Nodes::Node* n = std::any_cast(visitor.visitChildren(tree)); + auto a = visitor.visitChildren(tree); + Nodes::Node* n; return n; } @@ -57,11 +58,11 @@ ConvertorVisitor::ConvertorVisitor( std::any ConvertorVisitor::visitChildren(antlr4::tree::ParseTree* node) { - for (auto child: node->children) - { - child->accept(this); - } - return this; + /* for (auto child: node->children) */ + /* { */ + /* child->accept(this); */ + /* } */ + return node->accept(this); } std::any ConvertorVisitor::visit(antlr4::tree::ParseTree* tree)