logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Compiler::Lexer::Token - Token object for Compiler::Lexer

Author

       Masaaki Goshima (goccy) <goccy(at)cpan.org>

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

See Also