* src/ltlvisit/tostring.cc (is_bare_word): New function.
(to_string_visitor::visitor(const atomic_prop*)): Use is_bare_word to better check which atomic proposition need to be quoted. * src/ltlparse/ltlscan.ll: Do not allow identifiers starting with F_ or G_. * src/ltltest/equals.test, src/ltltest/tostring.test: More tests.
This commit is contained in:
parent
3802528bfd
commit
e9fd27e892
5 changed files with 39 additions and 6 deletions
|
|
@ -51,3 +51,6 @@ run 0 ./tostring 'G"TruE"'
|
|||
run 0 ./tostring 'FFALSE'
|
||||
run 0 ./tostring 'GTruE'
|
||||
run 0 ./tostring 'p=0UFXp=1'
|
||||
run 0 ./tostring 'GF"\GF"'
|
||||
run 0 ./tostring 'GF"foo bar"'
|
||||
run 0 ./tostring 'FFG__GFF'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue