- Timestamp:
- 11/19/13 13:31:38 (11 years ago)
- Branches:
- master
- Children:
- d6a59ca
- Parents:
- b97a556
- git-author:
- Tomasz Obrebski <obrebski@…> (11/19/13 13:31:38)
- git-committer:
- Tomasz Obrebski <obrebski@…> (11/19/13 13:31:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tre/tre
rb97a556 rb30c30d 278 278 $sat << i if parts[1]=="s" 279 279 280 $arcs |= parts[2].s plit(',').map{ |a| case a281 when /\-\-(\w+) -(\d+)\((\d+)~(\d+)\)/280 $arcs |= parts[2].scan(/\([^()]+\)/).map{ |a| case a 281 when /\-\-(\w+):(\d+)/ 282 282 # [i, $2.to_i, $1, $3.to_i, $4.to_i] 283 283 [i, $2.to_i, $1, 0, 0] 284 when /\+\+(\w+) -(\d+)\((\d+)~(\d+)\)/284 when /\+\+(\w+):(\d+)/ 285 285 # [$2.to_i, i, $1, $3.to_i, $4.to_i] 286 286 [$2.to_i, i, $1, 0, 0] … … 380 380 if $DEBUG then print "buildR--#{min}--#{max}--#{tree.inspect}\n" end 381 381 trees=[] 382 print $arcs 382 383 for arc in $arcs.select{|a| a[0]==max && $vis.include?([min,a[1]]) } 383 384 if $DEBUG then print "ARC: #{arc.inspect}\n" end
Note: See TracChangeset
for help on using the changeset viewer.