Sha256: 87a04de87841da43932ad56ba9c49ef1648522095785e1d963a4bee7d3ce2af9
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
require 'json' module IOSParser class LexError < StandardError; end def self.lexer if const_defined?(:PureLexer) PureLexer else require_relative 'ios_parser/c_lexer' CLexer end rescue LoadError require 'ios_parser/lexer' return PureLexer end Lexer = lexer end require_relative 'ios_parser/ios' module IOSParser class << self def parse(input) IOSParser::IOS.new.call(input) end def hash_to_ios(hash) IOSParser::IOS::Document.from_hash(hash) end def json_to_ios(text) hash_to_ios JSON.load(text) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ios_parser-0.4.1 | lib/ios_parser.rb |
ios_parser-0.4.0 | lib/ios_parser.rb |