New imploder doesn’t handle repeated literals properly, resulting in failing tests in stratego-sglr-tests (some examples below). Results are empty list in stead of expected term.

Strategy implode-asfix does work.


; apply-test(!“Repeated literals (STR-546)”
, parse-string(|tbl, “List”)
, !“$$$”
, !["$", "$", "$"]
)

; apply-test(!"Repeated literals (STR-546)"
  , parse-string(|tbl, "ListCase")
  , !"dollar Dollar dollar"
  , !["dollar", "dollar", "dollar"]
  )

; apply-test(!"Repeated literals (STR-546)"
  , parse-string(|tbl, "ListSep")
  , !"$,$,$"
  , !["$", "$", "$"]
  )

Submitted by Rob Vermaas on 13 May 2011 at 15:01

On 14 May 2011 at 21:00 Lennart Kats tagged parser

On 14 May 2011 at 21:02 Lennart Kats commented:

Might be the same issue as Spoofax/373.


On 16 May 2011 at 10:32 Lennart Kats tagged imploder

On 8 January 2013 at 14:59 Eelco Visser tagged sdf

Log in to post comments