# File lib/whois/record/parser/scanners/base.rb, line 25definitialize(content)
@input = StringScanner.new(content)
end
tokenizer(name, &block)click to toggle source
# File lib/whois/record/parser/scanners/base.rb, line 20defself.tokenizer(name, &block)
define_method(name, &block)
end
Public Instance Methods
parse()click to toggle source
# File lib/whois/record/parser/scanners/base.rb, line 29defparse# The temporary store.# Scanners may use this to store pointers, states or other flags.@tmp = {}
# A super-simple AST store.@ast = {}
tokenizeuntil@input.eos?@astend