Module: Kumi::Parser::TokenType

Defined in:
lib/kumi/parser/token_constants.rb

Overview

Token types

Constant Summary collapse

INTEGER =

Literals

:integer
FLOAT =
:float
STRING =
:string
BOOLEAN =
:boolean
IDENTIFIER =

Identifiers and symbols

:identifier
SYMBOL =

:name

:symbol
CONSTANT =

Float::INFINITY

:constant
SCHEMA =

Keywords

:schema
INPUT =
:input
VALUE =
:value
TRAIT =
:trait
IMPORT =
:import
CODEGEN =
:codegen
FROM =
:from
DO =
:do
END_KW =
:end
ON =
:on
BASE =
:base
INTEGER_TYPE =

Type keywords

:integer_type
FLOAT_TYPE =

integer

:float_type
DECIMAL_TYPE =

float

:decimal_type
STRING_TYPE =

decimal

:string_type
BOOLEAN_TYPE =

string

:boolean_type
ANY_TYPE =

boolean

:any_type
ARRAY_TYPE =

any

:array_type
ELEMENT_TYPE =

array

:element_type
INDEX_TYPE =

element

:index_type
FN =

Function keywords

:fn
EXPONENT =

Operators (by precedence)

:exponent
MULTIPLY =

**

:multiply
DIVIDE =

*

:divide
MODULO =

/

:modulo
ADD =

%

:add
SUBTRACT =

+

:subtract
GTE =

-

:gte
LTE =

>=

:lte
GT =

<=

:gt
LT =

>

:lt
EQ =

<

:eq
NE =

:ne
AND =

!=

:and
OR =

&

:or
DOT =

Punctuation

:dot
DOT_DOT =

.

:dot_dot
DOT_DOT_DOT =

..

:dot_dot_dot
COMMA =

:comma
COLON =

,

:colon
LPAREN =

:

:lparen
RPAREN =

(

:rparen
LBRACKET =

)

:lbracket
RBRACKET =

[

:rbracket
NEWLINE =

Special

:newline
EOF =
:eof
COMMENT =

# comment

:comment