Struct panopticon_core::disassembler::Disassembler [] [src]

pub struct Disassembler<A: Architecture> { /* fields omitted */ }

Ready made disassembler for simple instruction sets.

Disassembler instances are creates using the new_disassembler! macro. The resulting disassembler can then be used to produce Matches.

Methods

impl<A: Architecture> Disassembler<A>
[src]

[src]

Creates a new, empty, disassembler instance. You probably want to use new_disassembler! instead.

[src]

Converts to a dot file; useful for debugging

[src]

Adds the matching rule and associated semantic action. Panics if a is empty.

[src]

Sets the default semantic action. This action will be called for each token that failed to match.

[src]

Trys to match the token sequence i. If successful, the state after the semantic function was called is returned and None otherwise.

Trait Implementations

impl<A: Architecture> Debug for Disassembler<A>
[src]

[src]

Formats the value using the given formatter. Read more