Crate decodetree

Source
Expand description

§Decodetree parser and generator.

This crate provides utilities to generate decoding tries.

To be able to decode instructions you need their descriptions writteng in special format. The syntax can be found in specification.

Re-exports§

pub use crate::gen::Generator;

Modules§

gen
Code generator for decodetree.

Structs§

Cond
A condition for an instruction pattern.
DecodeTree
Container for field definitions, set definitions and patterns.
Errors
Parser errors.
FieldDef
A field definition.
FieldRef
A reference to a field definition.
Group
A group for non-overlapping patterns.
Overlap
A group for overlapping patterns.
Parser
Decodetree parser.
Pattern
An instruction pattern.
SetDef
A definition for an argument set.
SetValue
A value for a set.
SetValueDef
A value definition for a set.
UnnamedField
An unnamed field with position and length.
Value
A value for instruction pattern.

Enums§

Field
A list of field types.
FieldItem
A list of subfield types for field definition.
Item
A child item for a non-overlap group.
OverlapItem
A child item for a overlap group.
SetValueKind
A list of set value types.
ValueKind
A list of value types.

Traits§

Insn
Helper trait to work with instruction bits.

Functions§

from_str
Parse a decodetree from a string.

Type Aliases§

Str
Default type for storing strings.