class Bismas::Parser::Legacy

Legacy version of Parser that more closely mimics the behaviour of the original BISMAS software. Deviations from Parser:

  1. Records are not required to start with 0x01, any character will do.

  2. Category numbers are extended to any character except 0x0D 0x0A.

NOT IMPLEMENTED YET

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method
   # File lib/bismas/parser.rb
58 def initialize(options = {})
59   raise NotImplementedError, 'not implemented yet'
60 
61   @category_char = '.'
62   super
63   @regex[:category] = /#{@regex[:category]}(?<!#{@chars[:newline]})/
64 end

Private Instance Methods

match_record() click to toggle source
   # File lib/bismas/parser.rb
68 def match_record
69   @input.skip(/./)
70 end