Skip to content

Interpreter can't reduce top-level definitions #1247

@dhess

Description

@dhess

Code of conduct

  • I've read the project's code of conduct, and agree to follow it.

Don't report security issues here

  • I've read the project's security policy, and I do not believe this bug is a security issue.

Is there an existing issue?

  • I've searched GitHub Issues, and I believe this is a new issue

What happened?

While adding the interpreter to the various Primer APIs, I discovered that the interpreter can't reduce top-level definitions. This test demonstrates that the interpreter can't evaluate the even 3? top-level definition in our example even3Prog:

What should have happened?

The interpreter should be able to reduce a top-level definition whose root node is an App.

Which package(s) or aspect(s) of the project are the source of the issue?

primer

Developers, please provide the output of the bug report script

No response

Do you have a reproducer?

Yes, see above.

Any additional information?

We can't use the interpreter in the frontend until this issue is resolved. See hackworthltd/primer-app#1169

Metadata

Metadata

Assignees

Labels

bug 🐞A confirmed bugprimerSpecific to the primer packagepriority: highThis issue has high priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions