Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Re-enable the ability for users to define custom operators #220

Closed
wants to merge 3 commits into from

Conversation

IwanKaramazow
Copy link
Contributor

@gaku-sei
Copy link

gaku-sei commented Jan 5, 2021

That's huge!! Thank you @IwanKaramazow 😄

@gaku-sei gaku-sei mentioned this pull request Jan 8, 2021
5 tasks
let isMultiplicationLikeOperator operator =
String.length operator > 0 && (
let firstChar = String.unsafe_get operator 0 in
firstChar == '*' || firstChar == '/' || firstChar == '%'
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: operators such as ** are both exponentiation and multiplication at the moment.

@stale
Copy link

stale bot commented May 28, 2023

The rescript-lang/syntax repo is obsolete and will be archived soon. If this issue is still relevant, please reopen in the compiler repo (https://github.com/rescript-lang/rescript-compiler) or comment here to ask for it to be moved. Thank you for your contributions.

@stale stale bot added the stale label May 28, 2023
@stale stale bot closed this Jun 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants