class documentation

class Token(t.NamedTuple):

View In Hierarchy

Undocumented

Method test Test a token against a token expression. This can either be a token type or 'token_type:token_value'. This can only test against string values and types.
Method test​_any Test against multiple token expressions.
Class Variable lineno Undocumented
Class Variable type Undocumented
Class Variable value Undocumented
Method __str__ Undocumented
def test(self, expr):
Test a token against a token expression. This can either be a token type or 'token_type:token_value'. This can only test against string values and types.
Parameters
expr:strUndocumented
Returns
boolUndocumented
def test_any(self, *iterable):
Test against multiple token expressions.
Parameters
*iterable:strUndocumented
Returns
boolUndocumented
lineno: int =

Undocumented

type: str =

Undocumented

value: str =

Undocumented

def __str__(self):

Undocumented

Returns
strUndocumented