Astroport.ONE/venv/lib/python3.11/site-packages/graphql/language/token_kind.py

31 lines
541 B
Python
Raw Normal View History

2024-03-01 16:15:45 +01:00
from enum import Enum
__all__ = ["TokenKind"]
class TokenKind(Enum):
"""The different kinds of tokens that the lexer emits"""
SOF = "<SOF>"
EOF = "<EOF>"
BANG = "!"
DOLLAR = "$"
AMP = "&"
PAREN_L = "("
PAREN_R = ")"
SPREAD = "..."
COLON = ":"
EQUALS = "="
AT = "@"
BRACKET_L = "["
BRACKET_R = "]"
BRACE_L = "{"
PIPE = "|"
BRACE_R = "}"
NAME = "Name"
INT = "Int"
FLOAT = "Float"
STRING = "String"
BLOCK_STRING = "BlockString"
COMMENT = "Comment"