blark.transform.HexBitString

class blark.transform.HexBitString(type_name: Token | None, value: Token, meta: Meta | None = None)[source]

Bases: BitString

Hex bit string literal value.

Lark grammar

This class is used by the following grammar rules:

hex_bit_string_literal

| [ BIT_STRING_TYPE_NAME "#" ] "16#" HEX_STRING   -> hex_bit_string_literal

Methods

__init__(type_name, value[, meta])

Attributes

base

The numeric base of the value (e.g., 10 is decimal)

meta

Lark metadata.

type_name

The optional type name of the string.

value

The string literal.

base: ClassVar[int] = 16

The numeric base of the value (e.g., 10 is decimal)

meta: Meta | None = None

Lark metadata.

__init__(type_name: Token | None, value: Token, meta: Meta | None = None) None