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

Ignore should be tied to the target of synthesis, not the ignored function. #29

Closed
alcides opened this issue Mar 2, 2024 · 0 comments
Closed
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@alcides
Copy link
Owner

alcides commented Mar 2, 2024

The problematic use case is when we have a module M, which is imported from both files A and B. A wants to ignore everything in M, but B wants to ignore only a few. The current ignore decorator does not support this use case.

Inspired by Aesop, a solution is to wrap the target function in a syn_ignore decorator:

# M.ae
def c1 : Int = 1;
def c2 : Int = 2;

# A.ae
@syn_ignore(c1, c2)
def k : Int := ( ?h : Int )

# B.ae
@syn_ignore(c1)
def g : Int := ( ?g : Int )

This feature might require Metadata in decorators (#30)
Namespaces can be used as ignoring keywords (#26).

@alcides alcides added the good first issue Good for newcomers label Mar 2, 2024
@alcides alcides added bug Something isn't working help wanted Extra attention is needed labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants