mruby 3.4: Tokens

Rules

end of file

YYEOF / internal

error

YYerror / internal

invalid token

YYUNDEF / internal

class

keyword_class / keyword

module

keyword_module / keyword

def

keyword_def / keyword

begin

keyword_begin / keyword

if

keyword_if / keyword

unless

keyword_unless / keyword

while

keyword_while / keyword

until

keyword_until / keyword

for

keyword_for / keyword

undef

keyword_undef / keyword

rescue

keyword_rescue / keyword

ensure

keyword_ensure / keyword

end

keyword_end / keyword

then

keyword_then / keyword

elsif

keyword_elsif / keyword

else

keyword_else / keyword

case

keyword_case / keyword

when

keyword_when / keyword

break

keyword_break / keyword

next

keyword_next / keyword

redo

keyword_redo / keyword

retry

keyword_retry / keyword

in

keyword_in / keyword

do

keyword_do / keyword

do

keyword_do_cond / keyword

do

keyword_do_block / keyword

do

keyword_do_LAMBDA / keyword

return

keyword_return / keyword

yield

keyword_yield / keyword

super

keyword_super / keyword

self

keyword_self / keyword

nil

keyword_nil / keyword

true

keyword_true / keyword

false

keyword_false / keyword

and

keyword_and / keyword

or

keyword_or / keyword

not

keyword_not / keyword

'if' modifier

modifier_if / punct

'unless' modifier

modifier_unless / punct

'while' modifier

modifier_while / punct

'until' modifier

modifier_until / punct

'rescue' modifier

modifier_rescue / punct

alis

keyword_alias / keyword

BEGIN

keyword_BEGIN / keyword

END

keyword_END / keyword

__LINE__

keyword__LINE__ / punct

__FILE__

keyword__FILE__ / punct

__ENCODING__

keyword__ENCODING__ / punct

identifier

tIDENTIFIER / class

method name

tFID / class

global variable

tGVAR / class

instance variable

tIVAR / class

constant

tCONSTANT / class

class variable

tCVAR / class

label

tLABEL_TAG / class

integer

tINTEGER / class

float

tFLOAT / class

character

tCHAR / class

tXSTRING

tXSTRING / class

tREGEXP

tREGEXP / class

tSTRING

tSTRING / class

tSTRING_PART

tSTRING_PART / class

tSTRING_MID

tSTRING_MID / class

numbered reference

tNTH_REF / class

back reference

tBACK_REF / class

tREGEXP_END

tREGEXP_END / class

numbered parameter

tNUMPARAM / punct

unary plus

tUPLUS / punct

unary minus

tUMINUS / punct

<=>

tCMP / punct

==

tEQ / punct

===

tEQQ / punct

!=

tNEQ / punct

>=

tGEQ / punct

<=

tLEQ / punct

&&

tANDOP / punct

||

tOROP / punct

=~

tMATCH / punct

!~

tNMATCH / punct

..

tDOT2 / punct

...

tDOT3 / punct

tBDOT2

tBDOT2 / class

tBDOT3

tBDOT3 / class

tAREF

tAREF / class

tASET

tASET / class

<<

tLSHFT / punct

>>

tRSHFT / punct

::

tCOLON2 / punct

tCOLON3

tCOLON3 / class

tOP_ASGN

tOP_ASGN / class

=>

tASSOC / punct

tLPAREN

tLPAREN / class

(

tLPAREN_ARG / punct

)

tRPAREN / punct

[

tLBRACK / punct

tLBRACE

tLBRACE / class

{

tLBRACE_ARG / punct

*

tSTAR / punct

tPOW

tPOW / class

**

tDSTAR / punct

&

tAMPER / punct

->

tLAMBDA / punct

&.

tANDDOT / punct

symbol

tSYMBEG / keyword

string literal

tSTRING_BEG / punct

tXSTRING_BEG

tXSTRING_BEG / class

tSTRING_DVAR

tSTRING_DVAR / class

tREGEXP_BEG

tREGEXP_BEG / class

tWORDS_BEG

tWORDS_BEG / class

tSYMBOLS_BEG

tSYMBOLS_BEG / class

tLAMBEG

tLAMBEG / class

here document

tHEREDOC_BEG / punct

tHEREDOC_END

tHEREDOC_END / class

tLITERAL_DELIM

tLITERAL_DELIM / class

tHD_LITERAL_DELIM

tHD_LITERAL_DELIM / class

tHD_STRING_PART

tHD_STRING_PART / class

tHD_STRING_MID

tHD_STRING_MID / class

tLOWEST

tLOWEST / class

=

'=' / punct

?

'?' / punct

:

':' / punct

>

'>' / punct

<

'<' / punct

|

'|' / punct

^

'^' / punct

&

'&' / punct

+

'+' / punct

-

'-' / punct

*

'*' / punct

/

'/' / punct

%

'%' / punct

tUMINUS_NUM

tUMINUS_NUM / class

!

'!' / punct

~

'~' / punct

tLAST_TOKEN

tLAST_TOKEN / class

{

'{' / punct

}

'}' / punct

[

'[' / punct

]

']' / punct

,

',' / punct

`

'`' / punct

(

'(' / punct

)

')' / punct

;

';' / punct

.

'.' / punct

newline

'\n' / class

Keyboard shortcuts

/ focuses search. j and k move between rules. ? opens this help. Escape closes it.