1

The contents of the file looks like (any deep possible):

{
  {bla: XBS/333: bla9,1-}
}
{
  {q: XBS/333: bla9,1-}
  {{}}
  {x:{t: QWA/333: C}}
}

How do I parse it to e.g. an Array or a Hash with Ruby? What do you think is a good data structure object to store it to?

(It's a SWIFT-Banking file, if that helps)

aff
  • 162
  • 2
  • 6
  • 17
Beffa
  • 915
  • 1
  • 8
  • 18

1 Answers1

0

Try any proper parsers generator, for example http://treetop.rubyforge.org/

SK-logic
  • 9,605
  • 1
  • 23
  • 35