API reference
python:arxpy:arxpy.compiler.Compiler
class Compiler
Source: packages/arxpy/src/arxpy/compiler.py:435
Reusable facade for parse, check, compile, and run operations.
Operations are safe to repeat and serialized across Compiler instances while the frontend uses its process-wide input buffer. The facade never creates an implicit temporary artifact: callers provide an output path for in-memory compilation, while file compilation defaults beside the source. Unknown internal exceptions are not hidden as user diagnostics.
Methods
-
check — Run semantic analysis without lowering or materialization.
-
compile — Lower a program and optionally materialize a host artifact.
-
compile_file — Parse and compile one source file.
-
parse_file — Read and parse one UTF-8 Arx source file.
-
parse_string — Parse Arx source text.
-
run — Run an executable artifact without invoking a shell.