reprospect.test.sass.instruction.constant module

class reprospect.test.sass.instruction.constant.ConstantView on GitHub

Bases: object

Constant memory patterns.

ADDRESS: Final[str] = 'c\\[0x[0-9]+\\]\\[(?:0x[0-9A-Fa-f]+|R(?:Z|\\d+)|UR[0-9]+)\\]'

Constant memory location.

BANK: Final[str] = '0x[0-9]+'

Constant memory bank.

OFFSET: Final[str] = '(?:0x[0-9A-Fa-f]+|R(?:Z|\\d+)|UR[0-9]+)'

Constant memory offset.

classmethod address() strView on GitHub
class reprospect.test.sass.instruction.constant.ConstantMatch(bank: str, offset: str, math: MathModifier | None = None)View on GitHub

Bases: object

Result of matching a constant memory location.

__init__(bank: str, offset: str, math: MathModifier | None = None) None
bank: str
math: MathModifier | None
offset: str
classmethod parse(bits: Match[str]) ConstantMatchView on GitHub
class reprospect.test.sass.instruction.constant.ConstantMatcher(*, bank: str | None = None, offset: str | None = None, math: MathModifier | None = None)View on GitHub

Bases: object

Matcher for a constant memory location.

__init__(*, bank: str | None = None, offset: str | None = None, math: MathModifier | None = None) None

Method generated by attrs for class ConstantMatcher.

bank: str | None
classmethod build_pattern(*, bank: str | None = None, offset: str | None = None, math: MathModifier | None = None, captured: bool = True, capture_bank: bool = False, capture_offset: bool = False, capture_modifier_math: bool = False) strView on GitHub
match(constant: str) ConstantMatch | NoneView on GitHub
math: MathModifier | None
offset: str | None
pattern: Pattern[str]