Top Level Namespace
Defined Under Namespace
Modules: OboParser
Instance Method Summary collapse
-
#parse_obo_file(input) ⇒ Object
Implementation.
Instance Method Details
#parse_obo_file(input) ⇒ Object
Implementation
174 175 176 177 178 179 180 181 182 |
# File 'lib/obo_parser.rb', line 174 def parse_obo_file(input) @input = input raise(OboParser::ParseError, "Nothing passed to parse!") if !@input || @input.size == 0 builder = OboParser::OboParserBuilder.new lexer = OboParser::Lexer.new(@input) OboParser::Parser.new(lexer, builder).parse_file return builder.obo_file end |