Skip to content

yex.parse.Paragraph

yex.parse.Paragraph(*args) #

Bases: yex.parse.token.MagicToken

Paragraph break. We might represent this in documentation as .

This can only be generated internally; it's not part of the TeΧ system. It exists to make yex's code simpler.

It's never generated by the parser: reading \par does not generate one of these. Instead, it generates a ControlName for the symbol whose name is "\par". Parser will look this up and discover yex.keyword.Par. When the Mode runs that, it will produce an instance of this class. Yes, that really is the best way to do it.

Source code in yex/parse/token.py
687
688
def __init__(self, *args):
    self.ch = self.identifier