Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Giving a name to a bracket production in SDF3 breaks generated Stratego #65

Closed
molenzwiebel opened this issue Sep 28, 2021 · 1 comment
Labels
C-Bug Category: bug. Not working as expected P-High Priority: high. Should take priority over low and non-prioritized

Comments

@molenzwiebel
Copy link
Contributor

Summary

Using an SDF3 bracket production with a constructor name breaks the generated Stratego 2 pretty printer.

What you did

Expr.Bracketed = <(<Expr>)> {bracket}

What you expected to happen

Error.

What actually happened

Messages of ./build/generated/sources/languageSpecification/stratego/pp/exps-pp.str2:
  ERROR 46628-46635@1583-1584: Undefined constructor with arity 1 and type DynT(Dyn).
  ERROR 46360-46367@1572-1573: Undefined constructor with arity 1 and type DynT(Dyn).
  ERROR 46102-46109@1561-1562: Undefined constructor with arity 1 and type DynT(Dyn).
  ERROR 46060-46067@1558-1559: Undefined constructor with arity 1 and type DynT(Dyn).
  ERROR 45388-45395@1540-1541: Undefined constructor with arity 1 and type DynT(Dyn).

Context

  • Spoofax version: 0.11.11
  • Operating system & version: All
@molenzwiebel molenzwiebel added the C-Bug Category: bug. Not working as expected label Sep 28, 2021
@Gohla Gohla added the P-High Priority: high. Should take priority over low and non-prioritized label Sep 28, 2021
@Gohla
Copy link
Member

Gohla commented Sep 30, 2021

Fixed by metaborg/sdf@616a8b0

@Gohla Gohla closed this as completed Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug Category: bug. Not working as expected P-High Priority: high. Should take priority over low and non-prioritized
Projects
None yet
Development

No branches or pull requests

2 participants