12 if /^begin\s*(\d*)\s*(\S*)/ =~ line
18 out = open($file, "w") if $file != ""
25 raise "missing begin" unless $sawbegin
31 out.close unless out_stdout
32 File.chmod $mode.oct, $file unless out_stdout
35 line.sub!(/[a-z]+$/, "") # handle stupid trailing lowercase letters
36 next if /[a-z]/ =~ line
37 next if !(((($_[0] - 32) & 077) + 2) / 3 == $_.length / 4)
38 out << $_.unpack("u") if $sawbegin > $sawend
41 raise "missing end" if $sawbegin > $sawend
42 raise "missing begin" if ! $sawbegin