jashkenas/coffeescript

Personal attempt to implement new features

Closed this issue · 2 comments

Hi there!

Sorry for posting here — I couldn't find a better place to ask.

I'm building an editor and renderer for coding shader-like snippets — a kind of educational toy for students learning math. The goal is to keep things as simple as possible, and CoffeeScript’s syntax feels like a great fit for that.

I'm looking to make some changes to the CoffeeScript compiler, but it seems I’m not skilled enough to do it on my own. I'm trying to turn ^ into a power operator and use ^^ as bitwise XOR.

I started with the easy part — compiling ^^ into ^.
I tried editing "random things" in the compiler code with no success — my compiler just says "unexpected ^". So I gave up for now... Any advice would be greatly appreciated, though.

a1q0 commented

Since the issue is not one directly related with coffeescript, I guess it should get closed soon, you should open your own fork, so the discussion might continue there. I have node idea of the task's difficulty, might be trivial, might be hard. So I'm not promising anything but If I succeed I'll do a PR on your fork.

I discovered **. Never knew but it's available since 2016.