(Split from https://yellowgrass.org/issue/StrategoXT/844)

An optional literal always results in None() in the AST, while in C sglr, an optional literal -when present- results in Some("literal") in the AST.

Submitted by Tobi Vollebregt on 10 November 2010 at 14:19

On 10 November 2010 at 14:25 Lennart Kats commented:

There’s also an issue with sequences in optionals, e.g. ("foo" Bar Baz)?. But we give a warning for that now since you get a fugly, almost unusable AST with the original imploder. For now I’ll change the Spoofax SDF editor to give a similar warning about literals in optionals.


On 9 December 2010 at 14:45 Lennart Kats tagged incompatible

Log in to post comments