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

Ed binop #86

Merged
merged 4 commits into from
Nov 24, 2015
Merged

Ed binop #86

merged 4 commits into from
Nov 24, 2015

Conversation

edwadli
Copy link
Owner

@edwadli edwadli commented Nov 24, 2015

No description provided.

| Ast.Concat ->
Cast.Call(Cast.Function("nh_support","concat"),[castx_of_sastx lexpr; castx_of_sastx rexpr])
| Ast.Chord -> failwith "Internal error: binop chord should have been converted to Call NhFunction in ast2sast"
| Ast.Octave -> failwith "Internal error: binop octave should have been converted to Call NhFunction in ast2sast"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potentially an unpopular opinion, but i think we should make a Sast binop that excludes Zip, Chord, and Octave. Reasoning:

  • These runtime failwiths wil become compile time errors
  • Conceptually more correct -- the operators : @ , are just syntactic sugar for calling stdlib functions. So they should only exist in the ast, not the sast.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(And the same for uniop's flat and sharp)

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but be aware that you are also giving me arthritis of the fingers.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ticketed as #88

@kevin1
Copy link
Collaborator

kevin1 commented Nov 24, 2015

fix 'n 🚤

)
else throw "Cannot concat tracks with different key or time signature"
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this crashes the parser.

could you comment it out, and change tabs to spaces?

edwadli added a commit that referenced this pull request Nov 24, 2015
@edwadli edwadli merged commit 9ecb785 into master Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants