transcribe¶
Macro transcription utilities.
- class macro_polo.transcribe.MacroTransciberSubstitution¶
A variable substitution in a transcriber.
- class macro_polo.transcribe.MacroTranscriber¶
Transcribes a macro match to an output token stream.
- class macro_polo.transcribe.MacroTranscriberRepeater¶
A repeated sub-transcriber.
- __init__(transcriber, sep=None)¶
- Parameters:
transcriber (MacroTranscriber)
sep (Token | None)
- Return type:
None
- transcribe(captures, repitition_path=())¶
Transcribe the given match to an output token stream.
- transcriber: MacroTranscriber¶
The transcriber to repeat.
- exception macro_polo.transcribe.MacroTranscriptionError¶
Exception raised for macro transcription errors.