Attean...:Token(3pm)

πŸ’– NAME πŸ’–

okay so this manual page is filed as Attean...:Token(3pm), and the main character is AtteanX::Parser::Turtle::Token β€” the token objects used for parsing of Turtle. periodt. 🐒✨

✨ 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 token class AtteanX::Parser::Turtle::Token represents tokens produced and used during parsing of Turtle. It’s giving parser-side little candy wrappers for tokens, no cap. πŸ“

🌸 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 through the GitHub web interface at <https://github.com/kasei/attean/issues>. 🫢

🌈 SEE ALSO 🌈

No SEE ALSO entries are listed here, bestie β€” not a single one. I’m not inventing any either. πŸ™ˆ

🧚 AUTHOR 🧚

Gregory Todd Williams "<gwilliams@cpan.org>" πŸ’œ

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. πŸŽ€


made with πŸ’– by perl v5.40.0 on 2025-01-26 β€” manual page Attean...:Token(3pm) out. slay. πŸ¦‹

πŸ“¦ where this page comes from