1. 13 Apr, 2015 1 commit
    • Alexandre Duret-Lutz's avatar
      python: fix error handling while reading automata · ab7ee2c4
      Alexandre Duret-Lutz authored
      * wrap/python/tests/run.in: Make it easier to run python with gdb.
      * wrap/python/tests/automata-io.ipynb: Add test case.
      * wrap/python/spot.py (spot.automata): Make sure p is defined in all
      cases.
      * src/hoaparse/hoascan.ll: Make sure we do not close a file that
      hasn't been opened.
      ab7ee2c4
  2. 30 Mar, 2015 1 commit
    • Alexandre Duret-Lutz's avatar
      python: read automata from pipes · 961d005b
      Alexandre Duret-Lutz authored
      * src/hoaparse/hoaparse.yy, src/hoaparse/hoascan.ll,
      src/hoaparse/parsedecl.hh, src/hoaparse/public.hh:
      Add a way to read automata from a file descriptor.
      * wrap/python/spot.py: Add machinery to read from
      pipes.
      * wrap/python/tests/piperead.ipynb: New file.
      * wrap/python/tests/Makefile.am: Add it.
      * wrap/python/tests/run.in: Setup PATH.
      961d005b
  3. 01 Feb, 2015 1 commit
    • Alexandre Duret-Lutz's avatar
      ltlcross: replace %H,%T,%N by %O · 847270b4
      Alexandre Duret-Lutz authored
      Also get rid of the lbt_parser, and fix the LBT support of the HOA
      parser.
      
      * doc/org/ltlcross.org, doc/org/ltldo.org: Update.
      * src/bin/common_trans.cc, src/bin/common_trans.hh: Add support for
      %O, and keep %T,%N,%H as hidden aliases without disabling them.
      * src/bin/ltlcross.cc, src/bin/ltldo.cc, src/tgbatest/ltl2tgba.cc:
      Call hoa_parse instead of lbt_parse.
      * src/hoaparse/hoaparse.yy: Improve error reporting from LBT.
      * src/hoaparse/hoascan.ll: Fix typos preventing parsing of
      LBT files with more than 10 states.
      * src/tgbaalgos/lbtt.cc, src/tgbaalgos/lbtt.hh: Delete the lbt
      parser.
      * src/tgbatest/lbttparse.test: Adjust the expected error message.
      * NEWS: Update.
      847270b4
  4. 22 Jan, 2015 1 commit
  5. 11 Dec, 2014 1 commit
  6. 10 Dec, 2014 1 commit
    • Alexandre Duret-Lutz's avatar
      hoaparse: also accept LBTT input · 6eb2b06f
      Alexandre Duret-Lutz authored
      This is probably the worse grammar I wrote: the LBTT format is designed
      to be scanned with scanf, and very inconvenient to parse with
      bison/flex.  Here the scanner basically has to emulate a parser to
      classify the different INTs as tokens with different types.
      
      * src/hoaparse/hoaparse.yy, src/hoaparse/hoascan.ll: Add rules for LBTT.
      * src/hoaparse/parsedecl.hh: Add a way to reset the parser between each
      automata.
      * src/tgbatest/hoaparse.test, src/tgbatest/lbttparse.test: Add more
      tests.
      6eb2b06f
  7. 04 Dec, 2014 2 commits
    • Alexandre Duret-Lutz's avatar
      how: fix multi-line incomplete strings · ad771454
      Alexandre Duret-Lutz authored
      Location tracking was incorrect for multi-line
      strings/comments/parentheses.  This also fixes and tests recovery on
      inclosed strings/comments/parentheses.
      
      * src/hoaparse/hoaparse.yy: Abort on expected EOF.
      * src/hoaparse/hoascan.ll: Track newlines inside strings and comments.
      Do not use unput() to close incomplete parentheses.
      * src/tgbatest/neverclaimread.test, src/tgbatest/hoaparse.test: Add
      more tests.
      ad771454
    • Alexandre Duret-Lutz's avatar
      hoa: swallow the neverclaim parser · e1bba500
      Alexandre Duret-Lutz authored
      This way we can easily parse a stream of HOAs intermixed with
      neverclaims.
      
      * src/hoaparse/hoaparse.yy, src/hoaparse/hoascan.ll: Add rules
      for neverclaims, adjusted from src/neverparse/neverclaimparse.yy
      and src/neverparse/neverclaimparse.ll.
      * src/hoaparse/public.hh, NEWS: Update documentation.
      * src/neverparse/: Remove this directory.
      * README, configure.ac, src/Makefile.am: Adjust accordingly.
      * src/tgbatest/ltl2tgba.cc, src/bin/ltlcross.cc: Use HOA
      parser to read neverclaims.
      * src/tgbatest/hoaparse.test, src/tgbatest/neverclaimread.test: Adjust.
      e1bba500
  8. 25 Nov, 2014 2 commits
  9. 21 Nov, 2014 1 commit
    • Alexandre Duret-Lutz's avatar
      hoa: add support for --ABORT-- · c12b2d63
      Alexandre Duret-Lutz authored
      * src/hoaparse/parsedecl.hh (hoa_abort): New structure.
      * src/hoaparse/hoascan.ll: Throw hoa_abort on --ABORT--.
      * src/hoaparse/hoaparse.yy: Deal with this exception.
      * src/hoaparse/public.hh: Add a boolean flag to mark aborted automata.
      * src/bin/autfilt.cc: Report aborted automata.
      * src/tgbatest/hoaparse.test: Add test case.
      c12b2d63
  10. 19 Nov, 2014 1 commit
    • Alexandre Duret-Lutz's avatar
      hoa: preliminary implementation of a parser · e55bcd95
      Alexandre Duret-Lutz authored
      * src/hoaparse/Makefile.am, src/hoaparse/fmterror.cc,
      src/hoaparse/hoaparse.yy, src/hoaparse/hoascan.ll,
      src/hoaparse/parsedecl.hh, src/hoaparse/public.hh: New files.
      * src/Makefile.am, configure.ac, README: Adjust.
      * src/tgbatest/ltl2tgba.cc: Add a -XH option.
      * src/tgbatest/hoaparse.test: New file.
      * src/tgbatest/Makefile.am: Adjust.
      * buddy/src/bddx.h: Add a bdd_from_int() function.
      e55bcd95
  11. 18 Nov, 2014 2 commits
    • Alexandre Duret-Lutz's avatar
      fix line number tracking in files with DOS newlines · f8cf2aa9
      Alexandre Duret-Lutz authored
      * src/dstarparse/dstarscan.ll, src/kripkeparse/kripkescan.ll,
      src/neverparse/neverclaimscan.ll, src/tgbaparse/tgbascan.ll:
      Distinguish between 1-sized EOL and 2-sized EOL.
      * src/kripketest/bad_parsing.test, src/tgbatest/neverclaimread.test,
      src/tgbatest/readsave.test: Add more tests.
      * NEWS: Mention it.
      * src/kripkeparse/scankripke.ll: Remove this unused file.
      f8cf2aa9
    • Alexandre Duret-Lutz's avatar
      fix line number tracking in files with DOS newlines · 45e9b96b
      Alexandre Duret-Lutz authored
      * src/dstarparse/dstarscan.ll, src/kripkeparse/kripkescan.ll,
      src/neverparse/neverclaimscan.ll, src/tgbaparse/tgbascan.ll:
      Distinguish between 1-sized EOL and 2-sized EOL.
      * src/kripketest/bad_parsing.test, src/tgbatest/neverclaimread.test,
      src/tgbatest/readsave.test: Add more tests.
      * NEWS: Mention it.
      * src/kripkeparse/scankripke.ll: Remove this unused file.
      45e9b96b
  12. 23 Aug, 2013 1 commit
    • Alexandre Duret-Lutz's avatar
      dstarparse: Preliminary work on a parser for ltl2dstar. · 2da0053c
      Alexandre Duret-Lutz authored
      Supports reading Rabin and Streett automata, and converting them to
      nondeterministic Büchi automata (for Rabin) or TGBA (for Streett).
      
      * src/dstarparse/Makefile.am, src/dstarparse/dstarparse.yy,
      src/dstarparse/dstarscan.ll, src/dstarparse/fmterror.cc,
      src/dstarparse/parsedecl.hh, src/dstarparse/public.hh,
      src/dstarparse/nra2nba.cc, src/dstarparse/nsa2tgba.cc: New files.
      * configure.ac, src/Makefile.am, README: Adjust.
      * src/tgbatest/ltl2tgba.cc: Add options -XD, -XDB.
      * src/tgbatest/dstar.test: New file.
      * src/tgbatest/Makefile.am (TESTS): Add it.
      2da0053c