Compiler::Lexer::Token(3pm)

Compiler::Lexer::Token3pm

Token object for compiler::lexer

Usage

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

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

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

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

From libcompiler-lexer-perl 0.23-3+b4 in Debian 13 (Trixie). Parsed by carta from the page's man source.