Attean...:Token(3pm)

🌈 NAME 🌈

Okay bestie, welcome to the Attean...:Token(3pm) page β€” yep, that’s the manual name, and this is User Contributed Perl Documentation. The actual star of the show is AtteanX::SPARQL::Token, the class that represents tokens produced and used during parsing and serializing of SPARQL ✨

πŸ’– VERSION πŸ’–

This document describes AtteanX::SPARQL::Token version 0.035. Periodt πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

use v5.14;
use Attean;

πŸ¦‹ DESCRIPTION πŸ¦‹

The AtteanX::SPARQL::Token class represents tokens produced and used during parsing and serializing of SPARQL. It’s giving β€œsmall object, big parser energy” fr fr 🌸

🌟 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, like the integer value of an INT token. Iconic little sidecar πŸŽ€

πŸ’œ METHODS πŸ’œ

  • value β€” returns the token value πŸ’–
  • fast_constructor ( $type, $start_line, $start_col, $line, $col, \@args ) β€” returns a new token object. Signature exactly like this:
fast_constructor ( $type, $start_line, $start_col, $line, $col, \@args )
  • keyword( $kw ) β€” returns a new AtteanX::SPARQL::Token object with the KEYWORD type and $kw value.
  • integer( $value ) β€” returns a new AtteanX::SPARQL::Token object with the INTEGER type and the given $value.
  • as_string β€” returns a string description of the token including the token type and any associated values. Slay, readable output πŸ¦‹

πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests through the GitHub web interface at https://github.com/kasei/attean/issues. No cap, that’s the spot πŸ™ˆ

⭐ SEE ALSO ⭐

So… the original SEE ALSO section is literally empty. No entries. Just a cute little void. Minimalism ate, I guess πŸ’…

🌸 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.


πŸ’– cute little sign-off: this page came from perl v5.40.0, dated 2025-01-26, and the manual header is Attean...:Token(3pm). Byeee bestie 🫢✨

πŸ“¦ where this page comes from