Skip to content

Commit

Permalink
Merge increment in HDDL_Parser parse_objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed Mar 5, 2024
1 parent 9bf02ff commit e882919
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parsers/HDDL_Parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ def parse_objects(group)
@objects.concat(o = group.shift(i))
group.shift
types = [group.shift]
ti = 0
while type = types[ti]
ti = -1
while type = types[ti += 1]
@types.each {|sub,t| types << t if sub == type and not types.include?(t)}
ti += 1
end
types.each {|t| (@state[t] ||= []).concat(o.zip)}
end
Expand Down

0 comments on commit e882919

Please sign in to comment.