Creates a new MTextParser instance
The MText content to parse
Optionalctx: MTextContextOptional initial MText context
Parser options
Decode multi-byte character from hex code
Hex code string (e.g. "C4E3")
Decoded character or empty square if invalid
Push current context onto the stack
Pop context from the stack
Parse stacking expression (numerator/denominator)
Tuple of [TokenType.STACK, [numerator, denominator, type]]
Parse MText properties
The property command to parse
Property changes if yieldPropertyCommands is true and changes occurred
Get property changes between two contexts
The old context
The new context
Object containing changed properties
Parse float value or factor
Current value to apply factor to
New value
Extract float expression from scanner
Whether to allow relative values (ending in 'x')
Extracted expression
Extract integer expression from scanner
Extracted expression
Extract expression until semicolon or end
Whether to handle escaped semicolons
Extracted expression
Consume optional terminator (semicolon)
Parse paragraph properties from the MText content Handles properties like indentation, alignment, and tab stops
The context to update
Parse MText content into tokens
Main parser class for MText content