Pretty print fails on separator separated lists #28
Labels
Prio-Medium
Medium priority
Project-Stratego2-Lang
Stratego 2 language project
Project-StrategoXT
Stratego 1 compiler and libraries (from StrategoXT repo)
State-Open
Type-Bug
Describe the bug
When trying to pretty-print a term containing a separated list (
{X ","}*
), the pretty-printer fails onpp-H-list
due toCannot cast the following term from string to BoxLiteral: ","
(full trace at observed behaviour).Project
Stratego 2 strategolib library?
Versions
stratego@afde115891ba52b691690ae345ec1375031753c4
spoofax-pie@960c460f9d45d86e3bc09e59c39536bfdd10eb13
(Current heads of the spoofax3 branches)
To Reproduce
Create a project with the following SDF3:
And the following SPT file (where
<languagename>
should be replaced by the name of the language:Observed behaviour
The test fails with the following trace:
Expected behaviour
The test succeeds, and the
pp-<languagename>-string
strategy should produce a pretty printed string of it's input).Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: