Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Feb 17, 2024
1 parent 48f59b6 commit aac5cd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/domain/pddl/parser/constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ static pddl::Object parse_constant_definition(const domain::ast::Name& node, con

static pddl::ObjectList parse_constant_definitions(const std::vector<domain::ast::Name>& nodes, const pddl::TypeList& type_list, Context& context) {
auto constant_list = pddl::ObjectList();
//for (const auto& node : nodes) {
// constant_list.push_back(parse_constant_definition(node, type_list, context));
//}
for (const auto& node : nodes) {
constant_list.push_back(parse_constant_definition(node, type_list, context));
}
return constant_list;
}


pddl::ObjectList parse(const ast::Constants& constants_node, Context& context) {
return boost::apply_visitor(ConstantListVisitor(context), constants_node.typed_list_of_names);
return boost::apply_visitor(ConstantListVisitor(context), constants_node.typed_list_of_names.get());
}

ConstantListVisitor::ConstantListVisitor(Context& context_)
Expand Down

0 comments on commit aac5cd0

Please sign in to comment.