melody
melody copied to clipboard
[FEATURE] Add compiler to IntelliJ plugin and add unicode category support
Description
I added a built-in compiler to the IntelliJ plugin, and added the ability to see the regex of the file while editing. I also added support for unicode categories. The compiler is compatible with all current melody features, however it does not have any specific error messages. Heres a screenshot of it working:
Type of change
- [ ] ๐ Breaking
- [x] ๐ Feature
- [ ] ๐ Fix
- [ ] ๐ ๏ธ Tooling
- [ ] ๐งช Test
- [ ] ๐ฆ Dependency
- [ ] ๐ Requires documentation update
Awesome work @Tigermouthbear!
Regarding the compiler - I really appreciate you doing this and it's awesome, but wouldn't it be better long term to use the actual compiler to avoid incompatibility?
Thanks!
I'll see if its feasible to use the JNI to load the binary. The biggest challenge is that I'll have to compile the library for each supported platform and package it into the jar. Also, I need to check if intellij plugins are allowed to load into the JNI.
Does Java / Kotlin support WASM? That may work
not natively, but I might be able to use this Gradle plugin I found to transpile it into java code https://github.com/renatoathaydes/wasm-on-jvm
Hey @Tigermouthbear, is this still relevant?
sorry, I haven't been able to work much on this recently, but there is no native support for WASM on the JVM. I have tried a couple of WASM to JVM compilers, but I couldn't ever get them to work.