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

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 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 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]