[][src]Crate pest_ide

Pest IDE

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.

Modules

misc

Everything that are not related to pest.

str4j

Allocation library for Java use.

Statics

GLOBAL_ALLOCATOR
VM

Functions

convert_error

Convert the error to a readable format.

join_pairs

Convert the pair information to a string that the plugin understands.

line_col

From position to line-column pair.

load_vm

Load the Pest VM as a global variable.

render_code

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.