Metastatic.Adapters.Cure.Subprocess (Metastatic v0.30.0)

View Source

Subprocess management for Cure parser and unparser fallback.

Handles communication with external Cure CLI or parser binaries when in-process Cure compiler modules are unavailable.

Summary

Functions

Parse Cure source code to AST using external subprocess binary or cure CLI executable.

Unparse Cure AST back to source code using external subprocess binary or cure CLI executable.

Functions

parse(source)

@spec parse(String.t()) :: {:ok, term()} | {:error, String.t()}

Parse Cure source code to AST using external subprocess binary or cure CLI executable.

unparse(ast)

@spec unparse(term()) :: {:ok, String.t()} | {:error, String.t()}

Unparse Cure AST back to source code using external subprocess binary or cure CLI executable.