---
name: "AtteanX::Parser::Turtle::Token"
section: "3pm"
platform: "linux"
package: "libattean-perl"
version: "0.035-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/AtteanX::Parser::Turtle::Token"
---

# AtteanX::Parser::Turtle::Token(3pm)

Token objects used for parsing of Turtle

## NAME

AtteanX::Parser::Turtle::Token - Token objects used for parsing of Turtle

## VERSION

This document describes AtteanX::Parser::Turtle::Token version 0.035

## SYNOPSIS

```
  use v5.14;
  use Attean;
  my $term = Attean::Blank->new('b1');
  $term->ntriples_string; # _:b1
```

## DESCRIPTION

The AtteanX::Parser::Turtle::Token class represents tokens produced and used during parsing of Turtle.

## ATTRIBUTES

- "type"

  An integer indicating the token type, defined in AtteanX::Parser::Turtle::Constants

- "start\_line"

  The line number in the source text that this token begins on.

- "start\_column"

  The column number in the source text that this token begins on.

- "line"

  The line number in the source text that this token ends on.

- "column"

  The column number in the source text that this token ends on.

- "args"

  An array of values associated with the token (e.g. the integer value of an INT token).

## METHODS

- "value"

  Returns the token value.

- "fast\_constructor ( $type, $start\_line, $start\_col, $line, $col, \\@args )"

  Returns a new token object.

- token\_as\_string()

  Returns a string version of the token (without escaping).

- is\_string()

  Returns true if the token is one of the quoted string types (STRING1D, STRING3D, STRING1S, or STRING3S), false otherwise.

- "as\_string"

  Returns a string description of the token including the token type and any associated values.

## BUGS

Please report any bugs or feature requests to through the GitHub web interface at \<https://github.com/kasei/attean/issues\>.

## SEE ALSO

## AUTHOR

Gregory Todd Williams  `"<gwilliams@cpan.org>"`

## COPYRIGHT

Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
