Skip to content

Commit

Permalink
Merge strings in HDDL_Compiler compile_domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed Mar 15, 2024
1 parent fcd3146 commit a676f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compilers/HDDL_Compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module HDDL_Compiler
def compile_domain(domain_name, problem_name, operators, methods, predicates, state, tasks, goal_pos, goal_not)
negative_preconditions = method_preconditions = false
declared = {}
action_str = ''
action_str = " )\n"
# Operators
operators.each {|op|
# Header
Expand Down Expand Up @@ -49,7 +49,7 @@ def compile_domain(domain_name, problem_name, operators, methods, predicates, st
(pre = pre.join(' ?')).squeeze!('?')
domain_str << " (#{pre})\n"
}
domain_str << " )\n" << action_str << ')'
domain_str << action_str << ')'
end

#-----------------------------------------------
Expand Down

0 comments on commit a676f55

Please sign in to comment.