enum Myst::Token::Type

Defined in:

myst/syntax/token.cr

Enum Members

INTEGER = 0
FLOAT = 1
STRING = 2
CHAR = 3
SYMBOL = 4
INTERP_START = 5

INTERP_* tokens will only appear within a string.

INTERP_END = 6
REQUIRE = 7
INCLUDE = 8
EXTEND = 9
DEFMODULE = 10
DEFTYPE = 11
DEF = 12
DEFSTATIC = 13
FN = 14
MATCH = 15
DO = 16
UNLESS = 17
ELSE = 18
WHILE = 19
UNTIL = 20
WHEN = 21
END = 22
RETURN = 23
BREAK = 24
NEXT = 25
RAISE = 26
RESCUE = 27
ENSURE = 28
SELF = 29
TRUE = 30
FALSE = 31
NIL = 32
IDENT = 33
CONST = 34
IVAR = 35
MAGIC_FILE = 36
MAGIC_LINE = 37
MAGIC_DIR = 38
PLUS = 39
MINUS = 40
STAR = 41
SLASH = 42
MODULO = 43
EQUAL = 44
MATCH_OP = 45
NOT = 46
LESS = 47
LESSEQUAL = 48
GREATEREQUAL = 49
GREATER = 50
NOTEQUAL = 51
EQUALEQUAL = 52
ANDAND = 53
OROR = 54
ANDOP = 55
OROP = 56
PLUSOP = 57
MINUSOP = 58
STAROP = 59
SLASHOP = 60
MODOP = 61
AMPERSAND = 62
PIPE = 63
LPAREN = 64
RPAREN = 65
LBRACE = 66
RBRACE = 67
LCURLY = 68
RCURLY = 69
STAB = 70
COMMA = 71
POINT = 72
COLON = 73
SEMI = 74
DOC_START = 75
DOC_CONTENT = 76
COMMENT = 77
NEWLINE = 78
WHITESPACE = 79
EOF = 80
UNKNOWN = 81

Class Method Summary

Instance Method Summary

Class Method Detail

def self.binary_operators #

[View source]
def self.delimiters #

[View source]
def self.keyword_map #

[View source]
def self.keywords #

[View source]
def self.op_assigns #

[View source]
def self.overloadable_operators #

[View source]
def self.unary_operators #

[View source]
def self.whitespace #

[View source]

Instance Method Detail

def ampersand? #

[View source]
def andand? #

[View source]
def andop? #

[View source]
def binary_operator? #

[View source]
def block_terminator? #

[View source]
def break? #

[View source]
def char? #

[View source]
def colon? #

[View source]
def comma? #

[View source]
def comment? #

[View source]
def const? #

[View source]
def def? #

[View source]
def defmodule? #

[View source]
def defstatic? #

[View source]
def deftype? #

[View source]
def delimiter? #

[View source]
def do? #

[View source]
def doc_content? #

[View source]
def doc_start? #

[View source]
def else? #

[View source]
def end? #

[View source]
def ensure? #

[View source]
def eof? #

[View source]
def equal? #

[View source]
def equalequal? #

[View source]
def extend? #

[View source]
def false? #

[View source]
def float? #

[View source]
def fn? #

[View source]
def greater? #

[View source]
def greaterequal? #

[View source]
def ident? #

[View source]
def include? #

[View source]
def integer? #

[View source]
def interp_end? #

[View source]
def interp_start? #

[View source]
def ivar? #

[View source]
def keyword? #

[View source]
def lbrace? #

[View source]
def lcurly? #

[View source]
def less? #

[View source]
def lessequal? #

[View source]
def lparen? #

[View source]
def magic_dir? #

[View source]
def magic_file? #

[View source]
def magic_line? #

[View source]
def match? #

[View source]
def match_op? #

[View source]
def minus? #

[View source]
def minusop? #

[View source]
def modop? #

[View source]
def modulo? #

[View source]
def newline? #

[View source]
def next? #

[View source]
def nil? #

[View source]
def not? #

[View source]
def notequal? #

[View source]
def op_assign? #

[View source]
def operator? #

[View source]
def orop? #

[View source]
def oror? #

[View source]
def overloadable_operator? #

[View source]
def pipe? #

[View source]
def plus? #

[View source]
def plusop? #

[View source]
def point? #

[View source]
def raise? #

[View source]
def rbrace? #

[View source]
def rcurly? #

[View source]
def require? #

[View source]
def rescue? #

[View source]
def return? #

[View source]
def rparen? #

[View source]
def self? #

[View source]
def semi? #

[View source]
def slash? #

[View source]
def slashop? #

[View source]
def stab? #

[View source]
def star? #

[View source]
def starop? #

[View source]
def string? #

[View source]
def symbol? #

[View source]
def true? #

[View source]
def unary_operator? #

[View source]
def unknown? #

[View source]
def unless? #

[View source]
def until? #

[View source]
def when? #

[View source]
def while? #

[View source]
def whitespace? #

[View source]