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

Nary operators #34

Open
filipeom opened this issue Oct 26, 2023 · 0 comments
Open

Nary operators #34

filipeom opened this issue Oct 26, 2023 · 0 comments
Labels
proposal Proposal for addition or refinements

Comments

@filipeom
Copy link
Member

filipeom commented Oct 26, 2023

Maybe we could have something like this?

type nary = Add | Sub | Mul
type bary = And | Or
type sary = Concat
...

type nop =
  | Int of nary
  | Real of nary
  | Bool of bary
  | Str of sary
  | ...

type expr =
  ...
  | Nary of nop * expr list
@filipeom filipeom added the proposal Proposal for addition or refinements label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Proposal for addition or refinements
Projects
None yet
Development

No branches or pull requests

1 participant