NAME

Perl::Lexer::Token - Token

SYNOPSIS

$token->inspect() : Str

Stringify the token as human readable format.

$token->name() :Str

Get a token name.

$token->type() :Int

Get a token type. It's one of the following:

Perl::Lexer::TOKENTYPE_NONE()
Perl::Lexer::TOKENTYPE_IVAL()
Perl::Lexer::TOKENTYPE_OPNUM()
Perl::Lexer::TOKENTYPE_PVAL()
Perl::Lexer::TOKENTYPE_OPVAL()
$token->type_str() :Int

Get a string notation of the type.

$token->yylval() : B::OP|Int|Str

Get a yylval. The type of yylval is determined by $token->type.

$token->yylval_svop() : SV

Extract SV from yylval if yylval is B::SVOP.