Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 307 Bytes
module Poison
class Parser
def initialize(machine, source)
@parser = machine.new
@source = source
end
def parse
@syntax = Syntax.new @parser.parse(@source)
unless @syntax
raise SyntaxError.new(@parser.failure_reason)
end
@syntax
end
end
end
Jump to Line
Something went wrong with that request. Please try again.