Class |
Description |
|---|---|
Function |
Description |
|---|---|
Bases: object
BasicTypeParserResult(types: Dict[ForwardRef(‘types.QualifiedName’), ForwardRef(‘types.Type’)], variables: Dict[ForwardRef(‘types.QualifiedName’), ForwardRef(‘types.Type’)], functions: Dict[ForwardRef(‘types.QualifiedName’), ForwardRef(‘types.Type’)])
types (Dict[QualifiedName, Type]) –
variables (Dict[QualifiedName, Type]) –
functions (Dict[QualifiedName, Type]) –
None
Bases: TypeParser
Get the string representation of an option for passing to parse_type_*
option (TypeParserOption) – Option type
value (str) – Option value
A string representing the option if the parser supports it, otherwise None
str | None
Parse a single type and name from a string containing their definition.
A tuple of (result, errors) where result is a tuple of (type, name) or None of there was a fatal error.
Tuple[Tuple[types.QualifiedNameType, Type] | None, List[TypeParserError]]
Parse an entire block of source into types, variables, and functions
source (str) – Source code to parse
file_name (str) – Name of the file containing the source (optional: exists on disk)
platform (Platform) – Platform to assume the types are relevant to
existing_types (types.TypeContainerType | None) – Optional container of all existing types to use for parsing context
options (List[str] | None) – Optional string arguments to pass as options, e.g. command line arguments
include_dirs (List[str] | None) – Optional list of directories to include in the header search path
auto_type_source (str) – Optional source of types if used for automatically generated types
A tuple of (result, errors) where the result is None if there was a fatal error
Tuple[TypeParserResult | None, List[TypeParserError]]
Preprocess a block of source, returning the source that would be parsed
source (str) – Source code to process
file_name (str) – Name of the file containing the source (does not need to exist on disk)
platform (Platform) – Platform to assume the source is relevant to
existing_types (types.TypeContainerType | None) – Optional collection of all existing types to use for parsing context
options (List[str] | None) – Optional string arguments to pass as options, e.g. command line arguments
include_dirs (List[str] | None) – Optional list of directories to include in the header search path
A tuple of (preproccessed source, errors), where the preproccessed source is None if there was a fatal error.
Tuple[str | None, List[TypeParserError]]
Bases: object
Get the string representation of an option for passing to parse_type_*
option (TypeParserOption) – Option type
value (str) – Option value
A string representing the option if the parser supports it, otherwise None
str | None
Parse a single type and name from a string containing their definition.
A tuple of (result, errors) where result is a tuple of (type, name) or None of there was a fatal error.
Tuple[Tuple[types.QualifiedNameType, Type] | None, List[TypeParserError]]
Parse an entire block of source into types, variables, and functions
source (str) – Source code to parse
file_name (str) – Name of the file containing the source (optional: exists on disk)
platform (Platform) – Platform to assume the types are relevant to
existing_types (types.TypeContainerType | None) – Optional container of all existing types to use for parsing context
options (List[str] | None) – Optional string arguments to pass as options, e.g. command line arguments
include_dirs (List[str] | None) – Optional list of directories to include in the header search path
auto_type_source (str) – Optional source of types if used for automatically generated types
A tuple of (result, errors) where the result is None if there was a fatal error
Tuple[TypeParserResult | None, List[TypeParserError]]
Preprocess a block of source, returning the source that would be parsed
source (str) – Source code to process
file_name (str) – Name of the file containing the source (does not need to exist on disk)
platform (Platform) – Platform to assume the source is relevant to
existing_types (types.TypeContainerType | None) – Optional collection of all existing types to use for parsing context
options (List[str] | None) – Optional string arguments to pass as options, e.g. command line arguments
include_dirs (List[str] | None) – Optional list of directories to include in the header search path
A tuple of (preproccessed source, errors), where the preproccessed source is None if there was a fatal error.
Tuple[str | None, List[TypeParserError]]
Bases: object
TypeParserError(severity: binaryninja.enums.TypeParserErrorSeverity, message: str, file_name: str, line: int, column: int)
severity (TypeParserErrorSeverity) –
message (str) –
file_name (str) –
line (int) –
column (int) –
None
Bases: object
TypeParserResult(types: List[binaryninja.typeparser.ParsedType], variables: List[binaryninja.typeparser.ParsedType], functions: List[binaryninja.typeparser.ParsedType])
types (List[ParsedType]) –
variables (List[ParsedType]) –
functions (List[ParsedType]) –
None