Ruby 3.4: トークン
end-of-input
END_OF_INPUT / internal
error
YYerror / internal
invalid token
YYUNDEF / internal
class
keyword_class / keyword
module
keyword_module / keyword
def
keyword_def / keyword
undef
keyword_undef / keyword
begin
keyword_begin / keyword
rescue
keyword_rescue / keyword
ensure
keyword_ensure / keyword
end
keyword_end / keyword
if
keyword_if / keyword
unless
keyword_unless / keyword
then
keyword_then / keyword
elsif
keyword_elsif / keyword
else
keyword_else / keyword
case
keyword_case / keyword
when
keyword_when / keyword
while
keyword_while / keyword
until
keyword_until / keyword
for
keyword_for / 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
alias
keyword_alias / keyword
defined?
keyword_defined / punct
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 / class
integer
tINTEGER / class
float
tFLOAT / class
rational
tRATIONAL / class
imaginary number
tIMAGINARY / class
character
tCHAR / class
numbered reference
tNTH_REF / class
back reference
tBACK_REF / class
string content
tSTRING_CONTENT / class
tREGEXP_END
tREGEXP_END / class
dummy end
tDUMNY_END / punct
.
'.' / punct
backslash
'\\' / keyword
escaped space
tSP / punct
escaped horizontal tab
'\t' / punct
escaped form feed
'\f' / punct
escaped carriage return
'\r' / punct
escaped vertical tab
'\13' / punct
unary+
tUPLUS / punct
unary-
tUMINUS / keyword
**
tPOW / 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 / punct
(...
tBDOT3 / punct
[]
tAREF / punct
[]=
tASET / punct
<<
tLSHFT / punct
>>
tRSHFT / punct
&.
tANDDOT / punct
::
tCOLON2 / punct
:: at EXPR_BEG
tCOLON3 / punct
operator-assignment
tOP_ASGN / keyword
=>
tASSOC / punct
(
tLPAREN / punct
( arg
tLPAREN_ARG / punct
)
tRPAREN / punct
[
tLBRACK / punct
{
tLBRACE / punct
{ arg
tLBRACE_ARG / punct
*
tSTAR / punct
**arg
tDSTAR / punct
&
tAMPER / punct
->
tLAMBDA / punct
symbol literal
tSYMBEG / punct
string literal
tSTRING_BEG / punct
backtick literal
tXSTRING_BEG / punct
regexp literal
tREGEXP_BEG / punct
word list
tWORDS_BEG / punct
verbatim word list
tQWORDS_BEG / punct
symbol list
tSYMBOLS_BEG / punct
verbatim symbol list
tQSYMBOLS_BEG / punct
terminator
tSTRING_END / keyword
}
tSTRING_DEND / punct
#{
tSTRING_DBEG / punct
tSTRING_DVAR
tSTRING_DVAR / class
tLAMBEG
tLAMBEG / class
tLABEL_END
tLABEL_END / class
tIGNORED_NL
tIGNORED_NL / class
tCOMMENT
tCOMMENT / class
tEMBDOC_BEG
tEMBDOC_BEG / class
tEMBDOC
tEMBDOC / class
tEMBDOC_END
tEMBDOC_END / class
tHEREDOC_BEG
tHEREDOC_BEG / class
tHEREDOC_END
tHEREDOC_END / class
k__END__
k__END__ / 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
newline
'\n' / class
,
',' / punct
- mlhs_basic
- mlhs_head
- mlhs_post
- undef_list
- aref_args
- paren_args
- opt_call_args
- call_args
- opt_block_arg
- args
- mrhs
- f_marg_list
- f_margs
- f_kwarg_f_block_kw
- block_args_tail
- excessed_comma
- f_optarg_primary_value
- opt_args_tail_block_args_tail
- block_param
- bv_decls
- case_args
- p_top_expr_body
- p_args
- p_args_head
- p_args_tail
- p_find
- p_args_post
- p_kwargs
- p_kwarg
- f_kwarg_f_kw
- args_tail
- f_optarg_arg_value
- opt_args_tail_args_tail
- f_args
- f_arg
- opt_f_block_arg
- assocs
- trailer
`
'`' / punct
(
'(' / punct
)
')' / punct
]
']' / punct
;
';' / punct
' '
' ' / punct