blark.transform.BitString
- class blark.transform.BitString(type_name: Token | None, value: Token, meta: Meta | None = None)[source]
Bases:
Literal
Bit string literal value.
Lark grammar
This class is used by the following grammar rules:
bit_string_literal
bit_string_literal: [ BIT_STRING_TYPE_NAME "#" ] "2#" BIT_STRING -> binary_bit_string_literal | [ BIT_STRING_TYPE_NAME "#" ] "8#" OCTAL_STRING -> octal_bit_string_literal | [ BIT_STRING_TYPE_NAME "#" ] "16#" HEX_STRING -> hex_bit_string_literal | [ BIT_STRING_TYPE_NAME "#" ] INTEGER
Methods
__init__
(type_name, value[, meta])from_lark
(type_name, value)Attributes
The numeric base of the value (e.g., 10 is decimal)
Lark metadata.
The optional type name of the string.
The string literal.