Method: LC3#file
- Defined in:
- lib/lc3spec/lc3.rb
#file(filename) ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/lc3spec/lc3.rb', line 106 def file(filename) @io.puts "file #{filename}" # Need to encounter 2 TOCODEs before we're done tocode_counter = 2 while tocode_counter > 0 msg = @io.readline parse_msg msg.strip if msg =~ /^TOCODE/ tocode_counter -= 1 end # ignore warning about no symbols next if msg =~ /WARNING: No symbols/ # don't ignore other errors break if msg =~ /^ERR/ end self end |