AtteanX::Parser::Turtle::Token3pm
Token objects used for parsing of turtle
Usage
use v5.14;use Attean;my $term = Attean::Blank->new('b1');$term->ntriples_string; # _:b1
Version
This document describes AtteanX::Parser::Turtle::Token version 0.035
Overview
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.
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.