Skip to content

[FEATURE] Add compiler to IntelliJ plugin and add unicode category support#81

Open
Tigermouthbear wants to merge 2 commits into
yoav-lavi:mainfrom
Tigermouthbear:main
Open

[FEATURE] Add compiler to IntelliJ plugin and add unicode category support#81
Tigermouthbear wants to merge 2 commits into
yoav-lavi:mainfrom
Tigermouthbear:main

Conversation

@Tigermouthbear

Copy link
Copy Markdown
Contributor

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
  • 🚀 Feature
  • 🐛 Fix
  • 🛠️ Tooling
  • 🧪 Test
  • 📦 Dependency
  • 📖 Requires documentation update

@yoav-lavi

yoav-lavi commented Apr 29, 2022

Copy link
Copy Markdown
Owner

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!

@Tigermouthbear

Copy link
Copy Markdown
Contributor Author

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.

@yoav-lavi

Copy link
Copy Markdown
Owner

Does Java / Kotlin support WASM? That may work

@Tigermouthbear

Copy link
Copy Markdown
Contributor Author

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

@yoav-lavi

yoav-lavi commented Jun 5, 2022

Copy link
Copy Markdown
Owner

Hey @Tigermouthbear, is this still relevant?

@Tigermouthbear

Copy link
Copy Markdown
Contributor Author

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.

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