def __init__(self, value): Token.__init__(self, value) self.supported_neighbors = '([+]|[-]|[*]|[=]|[!]|[>]|[<]|[\/]|[;]|[,]|[.]|[&]|[|]|[(]|[)]|[{]|[}]|[\[]|[\]])' self.reserved_words = ("var", "const", "typedef", "struct", "extends", "procedure", "function", "start", "return", "if", "else", "then", "while", "read", "print", "int", "real", "boolean", "string", "true", "false", "global", "local") self.value = value
def __init__(self, value): Token.__init__(self, value)
def __init__(self, value): Token.__init__(self, value) self.error = True self.unknown_symbol = False
def __init__(self, value): Token.__init__(self, value) self.supported_neighbors = '([a-z]|[A-Z]|[0-9]|[{]|[}]|["]|[;]|[_]|[=]|[)]|[(])|[+]|[-]|[!]|[/]' self.value = value
def __init__(self, value): Token.__init__(self, value) self.supported_neighbors = '([a-z]|[A-Z]|[0-9]|[;]|[+]|[-]|["]|[(])' self.supported_value = ['==', '!=', '>=', '<=']
def __init__(self, value): Token.__init__(self, value) self.supported_neighbors = '([a-z]|[A-Z]|[0-9]|[(])' self.supported_value = ['&&', '||']
def __init__(self, value): Token.__init__(self, value) self.point_delimiter = False self.supported_neighbors = '([+]|[-]|[*]|[=]|[!]|[>]|[<]|[\/]|[;]|[,]|[(]|[)]|[\[]|[\]])'
def __init__(self, value): Token.__init__(self, value) self.supported_neighbors = '([a-z]|[A-Z]|[0-9]|[(]|[)]|[;]|[\[]|[\]])' self.supported_value = ['++', '--']