The libstrc pp-stratego-string strategy is unable to unparse the Override() AST node (as in the Stratego code override some-library-strategy = id).

This is a bit weird, since a PP rule for the override keyword appears to be present in all the Stratego(-Core,-Sugar).pp files I see.

See also this SPT test:


test bla
!AnnoDef([Override()], SDefNoArgs(“foo”, Id())); // <- can not be pp’ed
// !AnnoDef([], SDefNoArgs(“foo”, Id())); // <- can be pp’ed
//alltd(\Override() -> S(“override”)); // <- workaround
pp-stratego-string

Submitted by Tobi Vollebregt on 9 March 2012 at 14:28

On 9 March 2012 at 14:28 Tobi Vollebregt tagged stratego

On 9 March 2012 at 14:46 Tobi Vollebregt commented:

Oh I see pp-stratego-string does not even use any PP table, it uses a custom transform to a BOX AST.
Which does not process the Override() AST node, indeed.

Added it. Probably need strc-java baseline update again before this is completely fixed.


On 9 March 2012 at 14:47 Tobi Vollebregt tagged @tvo

On 13 November 2012 at 13:38 Maartje closed this issue.

On 8 January 2013 at 17:32 Gabriël Konat tagged 1.1

Log in to post comments