Expand description
§Working with the resymgen
YAML format
This crate contains utilities for working with the YAML configuration files of the resymgen
(reverse engineering symbol table generator) command line tool.
The top-level library functions implement the subcommands of resymgen
. That is, they take
input files containing symbol data, process the file contents based on specified configuration
parameters, and generate output related to the symbol data in the form of console output or
files.
The data_formats
module defines structures and methods related to parsing and manipulating
raw symbol data in various formats.
Re-exports§
pub use data_formats::symgen_yml::IntFormat;
pub use data_formats::symgen_yml::LoadParams;
pub use data_formats::symgen_yml::SymbolType;
pub use data_formats::InFormat;
pub use data_formats::OutFormat;
Modules§
- data_
formats - This module contains structs and methods for reading, writing, and manipulating different symbol data formats.
Structs§
- Check
Result - The result of a
Check
run onresymgen
YAML symbol tables. - Multi
File Error - Encapsulates a collection of similar errors for different files.
Enums§
- Check
- Checks that can be run on
resymgen
YAML symbol tables. - Naming
Convention - Naming conventions for symbol names.
Functions§
- format_
check_ file - Checks the format of a given
input_file
, subject to the givenint_format
. - format_
file - Formats a given
input_file
using the givenint_format
. - generate_
symbol_ tables - Generates symbol tables from a given
input_file
for multiple differentoutput_formats
andoutput_versions
. - merge_
symbols - Merges symbols from a collection of
input_files
of the formatinput_format
into a givensymgen_file
. - persist_
named_ temp_ file_ safe - Persist the temporary file at the target path.
- run_
and_ print_ checks - Validates a given set of
input_files
under the specifiedchecks
, and prints a summary of the results. - run_
checks - Validates a given
input_file
under the specifiedchecks
. - symgen_
write_ recursive - Recursively write a
SymGen
and all its subregions to files, starting with the top-level file path specified bytop_path
, and using the givenint_format
.