1AtteanX::SPARQL::Token(U3s)er Contributed Perl DocumentatAitotneanX::SPARQL::Token(3)
2
3
4

NAME

6       AtteanX::SPARQL::Token - Token objects used for parsing and serializing
7       SPARQL
8

VERSION

10       This document describes AtteanX::SPARQL::Token version 0.020
11

SYNOPSIS

13         use v5.14;
14         use Attean;
15

DESCRIPTION

17       The AtteanX::SPARQL::Token class represents tokens produced and used
18       during parsing and serializing of SPARQL.
19

ATTRIBUTES

21       "type"
22           An integer indicating the token type, defined in
23           AtteanX::Parser::Turtle::Constants
24
25       "start_line"
26           The line number in the source text that this token begins on.
27
28       "start_column"
29           The column number in the source text that this token begins on.
30
31       "line"
32           The line number in the source text that this token ends on.
33
34       "column"
35           The column number in the source text that this token ends on.
36
37       "args"
38           An array of values associated with the token (e.g. the integer
39           value of an INT token).
40

METHODS

42       "value"
43           Returns the token value.
44
45       "fast_constructor ( $type, $start_line, $start_col, $line, $col, \@args
46       )"
47           Returns a new token object.
48
49       "keyword( $kw )"
50           Returns a new AtteanX::SPARQL::Token object with the "KEYWORD" type
51           and $kw value.
52
53       "integer( $value )"
54           Returns a new AtteanX::SPARQL::Token object with the "INTEGER" type
55           and the given $value.
56
57       "as_string"
58           Returns a string description of the token including the token type
59           and any associated values.
60

BUGS

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

SEE ALSO

AUTHOR

67       Gregory Todd Williams  "<gwilliams@cpan.org>"
68
70       Copyright (c) 2014--2018 Gregory Todd Williams.  This program is free
71       software; you can redistribute it and/or modify it under the same terms
72       as Perl itself.
73
74
75
76perl v5.28.1                      2019-01-09         AtteanX::SPARQL::Token(3)
Impressum