Module output

Module output 

Source
Expand description

Output parsed database to other formats. Output parsed document.

Structs§

PanCsvOptions

Enums§

PanCsvEncoding
PanExportDelimiter

Functions§

encode_ast_json_output
Encode an AST JSON string into bytes using the requested output encoding.
export_pan_procedures
Export all procedures from a PAN file into individual files within a folder.
pan_file_to_ast_stdout
Read a PAN file from disk and return AST JSON bytes for stdout.
pan_file_to_ast_with_encoding_stdout
Read a PAN file from disk and return AST JSON bytes for stdout.
pan_file_to_csv_stdout
Read a PAN file from disk and return CSV bytes for stdout-style output.
pan_file_to_csv_with_options_stdout
pan_file_to_macro_stdout
Read a PAN file from disk and return macro procedure code bytes for stdout.
pan_file_to_macro_with_encoding_stdout
Read a PAN file from disk and return macro procedure code bytes for stdout.
pan_file_to_parse_json_stdout
pan_to_ast
Extract and parse a macro/procedure into an AST JSON string.
pan_to_ast_with_encoding
Extract and parse a macro/procedure into an AST JSON string.
pan_to_csv
pan_to_csv_with_options
pan_to_macro
Extract the source code of a specified macro by name.
pan_to_macro_with_encoding
Extract the source code of a specified macro by name using the requested encoding.
pan_to_parse_json
Convert a PAN file to JSON string. Mainly for testing and debugging purposes; don’t expect this to be a stable output format.
panmacro_to_ast_json
Parse a macro procedure into AST JSON string. If macro_name is Some, input_bytes is treated as a PAN database file. If macro_name is None, input_bytes is treated directly as macro procedure code.