Skip to content

yex.parse.Subscript

yex.parse.Subscript(ch, location=None) #

Bases: yex.parse.token.Token

A character that produces subscript text.

By default, this is _.

Source code in yex/parse/token.py
106
107
108
109
110
111
112
113
114
def __init__(self,
             ch: int,
             location: Union['yex.parse.Location', None] = None):

    if type(self)==Token:
        raise yex.exception.ConstructorError()

    self.ch = ch
    self.location = location