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.
- Decode
Tree - Container for field definitions, set definitions and patterns.
- Errors
- Parser errors.
- Field
Def - A field definition.
- Field
Ref - 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.
- SetValue
Def - A value definition for a set.
- Unnamed
Field - An unnamed field with position and length.
- Value
- A value for instruction pattern.
Enums§
- Field
- A list of field types.
- Field
Item - A list of subfield types for field definition.
- Item
- A child item for a non-overlap group.
- Overlap
Item - A child item for a overlap group.
- SetValue
Kind - A list of set value types.
- Value
Kind - 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.