GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Asm::Preproc::Token(3) User Contributed Perl Documentation Asm::Preproc::Token(3)

Asm::Preproc::Token - One token retrieved from the input

  use Asm::Preproc::Token;
  my $token = Asm::Preproc::Token->new($type, $value, $line);
  $token->type; $token->value; 
  $token->line; # isa Asm::Preproc::Line
  my $token2 = $token->clone;
  $token->error($message);
  $token->warning($message);
  Asm::Preproc::Token->error_at($token, $message);
  Asm::Preproc::Token->warning_at($token, $message);

This module defines the object to represent one token of input text as retrieved from the preprocessed input text. It contains the token type (a string), the token value (a string) and a Asm::Preproc::Line object with the line where the token was found.

There are also utility methods for error messages.

Creates a new object with the given type, value and line.

Get/set type.

Get/set file value.

Get/set line.

Creates an identical copy as a new object.

Dies with the given error message, indicating the place in the input source file where the error occured as:

  FILE(LINE) : error ... at TOKEN

Same as error(), but is a class method and can receive an undef $token.

Warns with the given error message, indicating the place in the input source file where the error occured as:

  FILE(LINE) : warning ... at TOKEN

Same as warning(), but is a class method and can receive an undef $token.

See Asm::Preproc.
2019-03-03 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.