require_relative '../lib/lexer'

File.open(ARGV[0]) do |f|
  Lexer.new(f).get_tokens()[0].map do |token|
    puts token.class.name[7..-1] +  ", " + token[0]
  end;
end

require_relative '../lib/lexer'

File.open(ARGV[0]) do |f|
  puts Lexer.new(f).get_tokens();
end

--- 
+++ 
@@ -1,5 +1,7 @@
 require_relative '../lib/lexer'
 
 File.open(ARGV[0]) do |f|
-  puts Lexer.new(f).get_tokens();
+  Lexer.new(f).get_tokens()[0].map do |token|
+    puts token.class.name[7..-1] +  ", " + token[0]
+  end;
 end
Change runner to output in the required format
