Add new angle parentheses and rename BRACKET to CURLY
This commit is contained in:
@@ -2,30 +2,32 @@ from enum import Enum
|
||||
|
||||
|
||||
class TokenType(Enum):
|
||||
OPEN_CURLY = '{'
|
||||
CLOSE_CURLY = '}'
|
||||
OPEN_PAREN = '('
|
||||
CLOSE_PAREN = ')'
|
||||
ASTERISK = '*'
|
||||
STRING = 'string'
|
||||
IDENTIFIER = 'identifier'
|
||||
COMMA = ','
|
||||
INTEGER = 'integer'
|
||||
OPEN_BRACKET = '{'
|
||||
CLOSE_BRACKET = '}'
|
||||
ASSIGN = '='
|
||||
NOTE = 'note'
|
||||
COMMENT = 'comment'
|
||||
PERCENT = 'percent'
|
||||
MINUS = '-'
|
||||
FUNCTION = 'function'
|
||||
RETURN = 'return'
|
||||
DOT = '.'
|
||||
OPEN_SQUARE = '['
|
||||
CLOSE_SQUARE = ']'
|
||||
OPEN_ANGLE = '<'
|
||||
CLOSE_ANGLE = '>'
|
||||
ASTERISK = '*'
|
||||
ASSIGN = '='
|
||||
COMMA = ','
|
||||
MINUS = '-'
|
||||
DOT = '.'
|
||||
INTEGER = 'integer'
|
||||
STRING = 'string'
|
||||
NOTE = 'note'
|
||||
TYPE = 'type'
|
||||
FUNCTION = 'function'
|
||||
RETURN = 'return'
|
||||
EXTEND = 'extend'
|
||||
IMPORT = 'import'
|
||||
FROM = 'from'
|
||||
AS = 'as'
|
||||
IDENTIFIER = 'identifier'
|
||||
COMMENT = 'comment'
|
||||
PERCENT = 'percent'
|
||||
|
||||
@property
|
||||
def key(self):
|
||||
|
||||
Reference in New Issue
Block a user