Module: OboParser::Tokens

Defined in:
lib/tokens.rb

Defined Under Namespace

Classes: Dbxref, DisjointFromTag, EndOfFile, IsATag, LBracket, Label, NameValuePair, RelationshipTag, TagValuePair, Term, Token, Typedef, ValuePair, XrefList

Class Method Summary collapse

Class Method Details

.obo_file_token_listObject

This list defines inclusion and priority, i.e. if tokens have overlap then the earlier indexed token will match first



267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
# File 'lib/tokens.rb', line 267

def self.obo_file_token_list
  [ 
    OboParser::Tokens::Term,
    OboParser::Tokens::Typedef,
    OboParser::Tokens::LBracket,
    OboParser::Tokens::DisjointFromTag,
    OboParser::Tokens::IsATag,
    OboParser::Tokens::RelationshipTag,
    OboParser::Tokens::TagValuePair,
    OboParser::Tokens::XrefList,
    OboParser::Tokens::EndOfFile
    # OboParser::Tokens::NameValuePair,  # not implemented
    # OboParser::Tokens::Dbxref,         # not implemented
  ]   
end