[Pyparsing] How can I gruop this?
Brought to you by:
ptmcg
From: Mario R. O. <nim...@gm...> - 2012-03-29 21:13:30
|
In the following definition; is there any way to obtain the amounts, dates and references grouped in a list or dictionary? I tried Group() and it doesn't work, single = StringStart() +\ delimitedList(Amount('amount') +\ Optional(Date)('date') +\ Optional(QuotedString(quoteChar="'"))('reference')) +\ journalName('journalName') +\ Optional(Comments)('comments') +\ StringEnd() |