metaborg / stratego

Apache License 2.0
10 stars 6 forks source link

Support concrete object syntax (mix syntax) in Stratego 2 #32

Closed Apanatshka closed 2 years ago

Apanatshka commented 2 years ago

Short description Support concrete object syntax by calling meta-explode at the right time in the front-end.

Problem description. Both Stratego 1 and Stratego 2 files are handled the same in the Stratego 2 compiler and should support concrete object syntax like the Stratego 1 compiler does.

Describe the solution you'd like Call meta-explode so things work and you don't get a random error in the type checker due to an unrecognised AST node.

Describe alternatives you've considered Don't support it? Not really an option. Don't reuse the old meta-explode? That makes it harder to be backward compatible, and to what end?

Additional context @Gohla needs this some time soon.