Compiler::Lexer::Token - Token object for Compiler::Lexer
Contents
License And Copyright
Copyright (c) 2013, Masaaki Goshima (goccy). All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.
perl v5.40.0 2024-10-20 Compiler::Lexer::Token(3pm)
Methods
support simple get/set accessors like Class::Accessor::Fast
example:
my $type = $token->type; # get accessor
$token->type(Compiler::Lexer::TokenType::T_RegExp); # set accessor
Name
Compiler::Lexer::Token - Token object for Compiler::Lexer
Synopsis
Compiler::Lexer::Token includes the following members.
stype
constant of Compiler::Lexer::SyntaxType
type
constant of Compiler::Lexer::TokenType
kind
constant of Compiler::Lexer::Kind
name
name of Compiler::Lexer::TokenType
data
raw data
has_warnings
flag of whether unknown keyword or not
