class Nasl::CommandTokenize
Public Class Methods
analyze(cfg, path, args)
click to toggle source
# File lib/nasl/commands/tokenize.rb, line 33 def self.analyze(cfg, path, args) contents = File.open(path, "rb").read begin Tokenizer.new(contents, path).get_tokens.each do |t| puts "[#{(t.first.to_s + ',').ljust(10)}#{t.last.region.to_s.rjust(20)}]" end rescue TokenException => e puts "The tokenizer raised the following exceptions when processing #{path}:" puts e.message puts e.backtrace puts end end
binding()
click to toggle source
# File lib/nasl/commands/tokenize.rb, line 29 def self.binding 'tokenize' end