apache / royale-compiler

Apache Royale Compiler
https://royale.apache.org/
Apache License 2.0
95 stars 49 forks source link

Add support for AIR SDK 50 language features #222

Closed piepie62 closed 1 year ago

piepie62 commented 1 year ago

Fixes #219 by adding the requested features

Harbs commented 1 year ago

Does this implement JS output? Is there tests for that?

(A quick browse at the code changes does not seem like it.)

piepie62 commented 1 year ago

Having just looked at that portion of the code, I honestly don't think I know enough JavaScript to do this in a way that's not subtly incorrect. There are so many exceptions there that I have no idea what their purpose is that I think it would be best for someone that actually uses the language to build that part, instead of me

Harbs commented 1 year ago

No worries. Thanks for this!

@joshtynjala Do you have time to review this PR? You're probably the best one to do it.

joshtynjala commented 1 year ago

I have null conditional and nullish coalescing implemented locally (working in both SWF and JS), which I was planning to push soon, after I write some tests. I'll keep this PR in mind as I proceed.

joshtynjala commented 1 year ago

New language features are committed. I included the verbatim string implementation from this PR, with some additional commits to fix some bugs.