6 7 8 9 10 11 12 13 14
# File 'lib/pubid/api/identifier.rb', line 6 def self.parse(input) # Filter out comments return nil if input.start_with?("#") tree = Parser.new.parse(input) Builder.new.build(tree) rescue Parslet::ParseFailed => e raise e end