tl: add support for ##n and ##[i:j] from SVA
* spot/tl/formula.cc, spot/tl/formula.hh (formula::sugar_delay): New function to implement this operator as syntactic sugar. * spot/parsetl/parsetl.yy, spot/parsetl/scantl.ll: Parse it. * doc/tl/tl.tex: Document the syntactic sugar rules and precedence. * tests/core/sugar.test: Add tests. * NEWS: Mention this new feature.
This commit is contained in:
parent
00f70257db
commit
60d488b30c
7 changed files with 213 additions and 27 deletions
6
NEWS
6
NEWS
|
|
@ -46,6 +46,12 @@ New in spot 2.7.4.dev (not yet released)
|
|||
acceptance condition. The output can be alternating only if the
|
||||
input was alternating.
|
||||
|
||||
- The parser for SERE learned to recognize the ##n and ##[i:j]
|
||||
operators from SVA. So {##2 a ##0 b[+] ##1 c ##2 e} is another
|
||||
way to write {[*2];a:b[+];c;1;e}, and {a ##[i:j] b} is parsed as
|
||||
{a:{[*i..j];b}}. The formula::sugar_delay() function implement
|
||||
this SVA operator in terms of the existing PSL operators.
|
||||
|
||||
New in spot 2.7.4 (2019-04-27)
|
||||
|
||||
Bugs fixed:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue