spot/src/tgbatest
Alexandre Duret-Lutz 86dac4aadf ltlparse: add a lenient parsing mode
Spin 6 supports formulas such as []<>(a < b) so that atomic properties
need not be specified using #define.  Of course we don't want to
implement all the syntax of Spin in our LTL parser because other tools
may have different syntaxes for their atomic propositions.  The
lenient mode tells the scanner to return any (...), {...}, or {...}!
block as a single token.  The parser will try to recursively parse
this block as a LTL/SERE formula, and if this fails, it will consider
the block to be an atomic proposition.  The drawback is that most
syntax errors will no be considered to be atomic propositions.  For
instance (a U b U) is a single atomic proposition in lenient mode, and
a syntax error in default mode.

* src/ltlparse/ltlparse.yy, src/ltlparse/ltlscan.ll,
src/ltlparse/parsedecl.hh, src/ltlparse/public.hh: Add a
lenient parsing mode.  Simplify the lexer using yy_scan_string.
* src/bin/common_finput.cc: Add a --lenient option.
* src/ltltest/lenient.test: New file.
* src/ltltest/Makefile.am: Add it.
* src/neverparse/neverclaimparse.yy: Parse the guards in lenient mode.
* src/tgbatest/neverclaimread.test: Adjust.
* src/ltlvisit/tostring.cc: When outputing a formula in Spin's syntax,
output (a < b) instead of "a < b".
* src/misc/escape.cc, src/misc/escape.hh (trim): New helper function.
2012-10-17 18:26:42 +02:00
..
.cvsignore more files to ignore 2004-06-22 22:58:09 +00:00
.gitignore more files to ignore 2011-04-10 22:14:12 +02:00
babiak.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
bddprod.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
complementation.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
complementation.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
cycles.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
defs.in Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
degendet.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
degenid.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
dfs.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
dupexp.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
eltl2tgba.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
emptchk.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
emptchke.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
emptchkr.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
explicit.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
explicit.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
explicit2.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
explicit2.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
explpro2.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
explpro3.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
explpro4.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
explprod.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
explprod.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
intvcmp2.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
intvcomp.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
intvcomp.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
kv.test * src/tgbatest/kv.test: Fix the test comparison. 2012-10-12 22:09:16 +02:00
lbttparse.test lbtt_parse: add support for state-based acceptance 2012-10-13 17:38:32 +02:00
ltl2neverclaim.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
ltl2ta.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
ltl2tgba.cc Add a parser for automata in LBTT's format. 2012-10-13 13:36:40 +02:00
ltl2tgba.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
ltlcheck.test ltlcheck: add options --json and --csv 2012-10-15 17:31:43 +02:00
ltlcheck2.test ltlcheck: add options --json and --csv 2012-10-15 17:31:43 +02:00
ltlcounter.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
ltlprod.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
ltlprod.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
Makefile.am Add new tests for LTL and PSL translation, based on ltlcheck. 2012-10-14 19:06:59 +02:00
mixprod.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
mixprod.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
neverclaimread.test ltlparse: add a lenient parsing mode 2012-10-17 18:26:42 +02:00
nondet.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
obligation.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
powerset.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
randpsl.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
randtgba.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
randtgba.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
readsave.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
renault.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
scc.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
sccsimpl.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
spotlbtt.test * src/tgbatest/spotlbtt.test: Remove superfluous options. 2012-10-15 15:14:51 +02:00
spotlbtt2.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
taatgba.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
taatgba.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
tgbaread.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
tgbaread.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
tripprod.cc Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
tripprod.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
wdba.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00
wdba2.test Upgrade GPL v2+ to GPL v3+. 2012-10-12 22:05:18 +02:00