nada_dsl.compile

Compilation functions.

class CompilerOutput(mir: str)[source]

Bases: object

Compiler Output

mir: str
__eq__(other)

Return self==value.

compile_script(script_path: str) CompilerOutput[source]

Compiles a NADA program

Parameters:

script_path (str) – The nada program path

Returns:

The Compiler Output

Return type:

CompilerOutput

compile_string(script: str) CompilerOutput[source]

Compiles a NADA program from a string

Parameters:

script (str) – The nada program as a base64 encoded string (UTF-8)

Returns:

The Compiler Output

Return type:

CompilerOutput

print_output(out: CompilerOutput)[source]

Prints compiler output

Parameters:

out (CompilerOutput) – Output of the compiler