class documentation
class LonelyOptionalError(BootstraparseError):
Optional token could not be matched with last element in pile (not a container).
| Method | __init__ |
Initializes the LonelyOptionalError class with the token found and the last element in the pile Used when a token is found that is optional and cannot be matched with the last element in the pile (not a container) :param token: The token that is not final :type token: syntax... |
| Instance Variable | label |
Undocumented |
| Instance Variable | line |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | token |
Undocumented |
def __init__(self, token, last_in_pile):
Initializes the LonelyOptionalError class with the token found and the last element in the pile Used when a token is found that is optional and cannot be matched with the last element in the pile (not a container) :param token: The token that is not final :type token: syntax.SemanticType :param last_in_pile: The last element in the pile :type last_in_pile: syntax.SemanticType