pub enum TokenKind {
Show 13 variants
Type,
Variable,
BlockParam,
Varnode,
Literal,
Bytes,
Keyword,
Operator,
Punctuation,
Label,
Field,
Function,
Space,
}Expand description
What a token is, semantically — drives syntax coloring in a viewer.
Variants§
Type
A type name (i32, f64), the access width of a load/store, or a cast
target width.
Variable
An instruction-result reference (%name / %tmp…).
BlockParam
A block parameter (@name), or a parameter/argument name on the left of
= in a branch/call argument.
Varnode
A varnode / register reference.
Literal
A literal constant (0x2, &<blk>, &"str") or a bare numeric offset.
Bytes
A byte-string literal (b"…").
Keyword
A reserved word or mnemonic (load, goto, call fn, zext, …).
Operator
An operator (+, =, <-, <$>, .).
Punctuation
Structural punctuation ((, ), ,, :, [, ], ;, spaces).
Label
A basic-block label (<name>).
Field
An aggregate field name (lhs, .val).
Function
A function reference (call/apply/map/scan target, or function used as a value operand).
Space
A memory space name (ram, register, …).