Skip to content

Commit

Permalink
Try parsing a mult
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Oct 28, 2024
1 parent 96e35ad commit 47b2932
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/solver/modelConverter/convertorVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ Nodes::Node* convertExpressionToNode(
ExprParser::ExprContext* tree = parser.expr();

ConvertorVisitor visitor(registry, model);
Nodes::Node* n = std::any_cast<Nodes::Node*>(visitor.visitChildren(tree));
auto a = visitor.visitChildren(tree);
Nodes::Node* n;
return n;
}

Expand All @@ -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)
Expand Down

0 comments on commit 47b2932

Please sign in to comment.