parse_aut: simplify the interface
* src/parseaut/public.hh, src/parseaut/parseaut.yy, src/parseaut/fmterror.cc: Add a raise_errors options. Remove the parse_strict() method. Store parse errors and filename in the output parsed_aut to simplify usage. * doc/org/tut20.org, doc/org/tut21.org, doc/org/tut30.org, src/bin/autfilt.cc, src/bin/common_hoaread.cc, src/bin/dstar2tgba.cc, src/bin/ltlcross.cc, src/bin/ltldo.cc, src/tests/complementation.cc, src/tests/ikwiad.cc, src/tests/ltlcross3.test, src/tests/ltldo.test, wrap/python/spot.py, wrap/python/tests/parsetgba.py: Adjust usage. * NEWS: Mention the changes.
This commit is contained in:
parent
3d5d160635
commit
dee73ee342
18 changed files with 228 additions and 215 deletions
|
|
@ -32,14 +32,12 @@ out = open(filename, 'w+')
|
|||
out.write(contents)
|
||||
out.close()
|
||||
|
||||
p = spot.empty_parse_aut_error_list()
|
||||
a = spot.parse_aut(filename, p, spot.make_bdd_dict())
|
||||
a = spot.parse_aut(filename, spot.make_bdd_dict())
|
||||
|
||||
assert not p
|
||||
assert not a.errors
|
||||
|
||||
spot.print_dot(spot.get_cout(), a.aut)
|
||||
|
||||
del p
|
||||
del a
|
||||
|
||||
os.unlink(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue