Support braces in addition to parentheses in rational expressions.
* src/ltlparse/ltlparse.yy (rationalexp): Allow bracedrationalexp. * src/ltltest/consterm.test, src/tgbatest/ltl2tgba.test: Add more tests.
This commit is contained in:
parent
2f8c4ac8b7
commit
4e7233d9fa
3 changed files with 4 additions and 1 deletions
|
|
@ -234,6 +234,8 @@ booleanatom: ATOMIC_PROP
|
|||
rationalexp: booleanatom
|
||||
| CONST_EMPTYWORD
|
||||
{ $$ = constant::empty_word_instance(); }
|
||||
| bracedrationalexp
|
||||
{ $$ = $1; }
|
||||
| PAR_OPEN rationalexp PAR_CLOSE
|
||||
{ $$ = $2; }
|
||||
| PAR_OPEN error PAR_CLOSE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue