Class: ODDB::AnalysisParse::AnonymousListParser

Inherits:
Parser show all
Defined in:
ext/analysisparse/src/anonymous_list_parser.rb

Constant Summary

LINE_PTRN =
/^([CNS]|N,\s*ex|TP)?\s*\d{4}\.\d{2,}\s*\d+\s*\w/u
PARSER =
Parse.generate_parser grammar

Constants inherited from Parser

FOOTNOTE_PTRN, FOOTNOTE_TYPE, LINE_PTRN, STOPCHARS

Instance Method Summary (collapse)

Methods inherited from Parser

#footnote_line, #footnote_type, #initialize, #parse_footnotes, #parse_page, #update_footnotes

Constructor Details

This class inherits a constructor from ODDB::AnalysisParse::Parser

Instance Method Details

- (Object) parse_line(src)



33
34
35
36
# File 'ext/analysisparse/src/anonymous_list_parser.rb', line 33

def parse_line(src)
  src.gsub!(/\s+/,' ')
  super
end