tl: add support for ##[+] and ##[*]
Suggested by Victor Khomenko. * spot/parsetl/parsetl.yy, spot/parsetl/scantl.ll: Implement them. * NEWS, doc/tl/tl.tex: Document them. * tests/core/sugar.test: Add a couple of tests.
This commit is contained in:
parent
b726d78cbd
commit
f476483f4a
5 changed files with 19 additions and 3 deletions
|
|
@ -43,6 +43,8 @@ F[]a|G[]b|X[]c
|
|||
{a ##[:] b}|->e
|
||||
{a ##[:1] b}|->e
|
||||
{##[..3] b}|->e
|
||||
{a ##[+] b}|->e
|
||||
{##[*] b}|->e
|
||||
EOF
|
||||
|
||||
ltlfilt -F ok.in > ok.out
|
||||
|
|
@ -66,6 +68,8 @@ FGa | Gb | XGc
|
|||
{a:{[*];b}}[]-> e
|
||||
{a:{[*0..1];b}}[]-> e
|
||||
{[*0..3];b}[]-> e
|
||||
{a;[*];b}[]-> e
|
||||
{[*];b}[]-> e
|
||||
EOF
|
||||
diff ok.out expect
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue