blark.transform.BinaryBitString

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

Bases: BitString

Binary bit string literal value.

Lark grammar

This class is used by the following grammar rules:

binary_bit_string_literal

bit_string_literal: [ BIT_STRING_TYPE_NAME "#" ] "2#" BIT_STRING    -> binary_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] = 2

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