class documentation

Undocumented

Method to_container Function called by the context manager to know how to deal with the encapsulation of the token. :param filter_func: A function that will be used to filter the content of the token. :type filter_func: (callable| None) :return: Self if containable, the expected replacement token if it can, raises an error otherwise...
Class Variable label Undocumented

Inherited from EmptySemanticType:

Method to_markup Function used for testing and readability purposes. Replaces matched markup with html-like tags. :return: The markup of the token. :rtype: str

Inherited from FinalSemanticType (via EmptySemanticType):

Method counterpart Function called by the context manager to know how to deal with the encapsulation of the token. Will return the counterpart of the token (the previous token to look for). :return: The counterpart of the token...

Inherited from SemanticType (via EmptySemanticType, FinalSemanticType):

Method __eq__ Undocumented
Method __init__ Initialises the token. :param content: The content of the token. :type content: list[pp.ParseResults]
Method __ne__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method to_original Return the original string of the token. :return: The original string of the token. :rtype: str
Instance Variable content Undocumented
Instance Variable file_name Undocumented
Instance Variable label_container Undocumented
Instance Variable line_number Undocumented
def to_container(self, filter_func=None):

Function called by the context manager to know how to deal with the encapsulation of the token. :param filter_func: A function that will be used to filter the content of the token. :type filter_func: (callable| None) :return: Self if containable, the expected replacement token if it can, raises an error otherwise. :rtype: SemanticType | context_mngr.BaseContainer :raises CannotBeContainedError: Raises error if the token we were trying to encapsulate cannot be (probably mismatched).

label: str =