Print F"proc.st" as Fproc.st.

* src/ltlvisit/tostring.cc: Allow '.' in bare words while
printing atomic propositions.
* src/ltltest/bare.test: New file.
* src/ltltest/Makefile.am: Add it.
This commit is contained in:
Alexandre Duret-Lutz 2012-11-28 17:27:14 +01:00
parent af639e58c7
commit 64484e7816
3 changed files with 36 additions and 2 deletions

View file

@ -198,13 +198,13 @@ namespace spot
|| *str == 'F'
|| *str == 'G'
|| *str == 'X'
|| !(isalpha(*str) || *str == '_')
|| !(isalpha(*str) || *str == '_' || *str == '.')
|| !strcasecmp(str, "true")
|| !strcasecmp(str, "false"))
return false;
// The remaining of the word must be alphanumeric.
while (*++str)
if (!(isalnum(*str) || *str == '_'))
if (!(isalnum(*str) || *str == '_' || *str == '.'))
return false;
return true;
}