# $Id: break.rb,v 1.2 2003/12/30 06:11:01 yuya Exp $ for i in 0..2 p(i) break if i == 1 end # NodeDump V0.1.7 # # NODE_NEWLINE: [break.rb:3] # NODE_FOR: # Each on: # NODE_DOT2: # From: # NODE_LIT: Fixnum: 0 # To: # NODE_LIT: Fixnum: 2 # Into: # NODE_LASGN: # Assign to LV 2 (i) # NODE_BLOCK: # NODE_NEWLINE: [break.rb:4] # NODE_FCALL: to function: 6753 (p) # Parameters: # NODE_ARRAY: size = 1 # NODE_LVAR: LV 2 (i) # NODE_NEWLINE: [break.rb:5] # NODE_IF: # NODE_CALL: to method: 326 (==) # Receiver: # NODE_LVAR: LV 2 (i) # Parameters: # NODE_ARRAY: size = 1 # NODE_LIT: Fixnum: 1 # then: # NODE_BREAK: # else: