This is a bridge library for the IntelliJ IDEA plugin for Pest.
It's supposed to be compiled only with the wasm32 backend of nightly rustc (at least at this moment).
After compiling as wasm, it's translated to JVM bytecode with asmble and then loaded in the plugin. Thus no JNI.
Everything that are not related to pest.
Allocation library for Java use.
Convert the error to a readable format.
Convert the pair information to a string that the plugin understands.
From position to line-column pair.
Load the Pest VM as a global variable.
After loading the VM, this function can parse the code with the currently loaded VM. Assumes the VM is already loaded, otherwise it'll panic.