/************************************************************/
/* ppcont */
/************************************************************/
/* :SUMMARY: loading erroneous data with pparse
:PRIORITY: 2
:FEATURE:
pparse allows to batch-read data with some errors - the errors are
reported with their approximate line-number
all objects should be created, only the error-free ones will
contain data, objects with any error will be left empty, even if
some data was correct.
:MODEL:
:DATA:
M "loadcheck.ok"
T
M "loadcheck.wrongtag"
X
T 1995
M "loadcheck.wrongvalue"
T 1.1
T 1996
:RESULT:
pp: should report two parse-errors (line 8 and 12)
should create all three objects, only the first one has data
works in: 4_7h, 4_8-990607
find: no matter what the state of the database and the current keyset is
the list and the show command should agree on the number of
objects in the keyset. The class M sould have all 3 objects
Show will dump out 2 of them - loadcheck.ok, loadcheck.wrongtag
List will dump the names of all 3
works in: 4_7h
4_8-990607
:SCRIPT: */
ppcont: dbinit wspec.mini // pparse continues at error
tace
parse: do pparse $data/mini.loadcheck.ace // leave 2 active objects
show // show only loadcheck.ok, 2 active
list // lists 2 objects
clear: do clear
find: do find M // finds 3 objects
show // shows ok and wrongtag, 3 active
list // lists all 3
exit