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

Implement some sugar #15

Open
sebastianselander opened this issue Mar 29, 2023 · 0 comments
Open

Implement some sugar #15

sebastianselander opened this issue Mar 29, 2023 · 0 comments
Labels

Comments

@sebastianselander
Copy link
Collaborator

It would be cool to be able to write e.g

xs = 0 `Cons` 1 `Cons` Nil ;

or perhaps

not True = False ;
not False = True ;

I have started a module named Desugar.hs earlier this week which we can build upon.
Most sugar should be quite easy to convert, the hard part is defining them in Grammar.cf such that they don't add any conflicts with current rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant