package libsail
Module Libsail.Pretty_print_sailSource
The PRINT_CONFIG module type can be used to customise the behavior of the pretty-printer
The Printer functor defines the printing function based on the supplied printing configuration
This function is intended to reformat machine-generated Sail into something a bit more readable, it is not intended to be used as a general purpose code formatter. The output will be dumped as multiple files into the directory argument.
The default PRINT_CONFIG sets all the options to false, so it prints the AST 'as is' without modifications.
For convenience, other modules can get the default behavior by just importing this module.
include sig ... end
This function is primarly used to dump the AST by debug options, such as --ddump-tc-ast.