Attean...:Lexer(3pm)

🌸 AtteanX::Parser::Turtle::Lexer πŸ’…

okay so bestie, welcome to the User Contributed Perl Documentation page for AtteanX::Parser::Turtle::Lexer β€” yes the header line is cramped and ugly up there but that's just how manpages vibe, we don't question it πŸŽ€

✨ NAME ✨

AtteanX::Parser::Turtle::Lexer β€” the tokenizer for parsing Turtle, TriG, and N-Triples, no cap 🐒πŸ”₯

πŸ¦‹ VERSION πŸ¦‹

This document describes AtteanX::Parser::Turtle::Lexer version 0.035 β€” she's serving a specific era, respect it πŸ’œ

⭐ SYNOPSIS ⭐

like, here's the whole entire vibe, literally:

use AtteanX::Parser::Turtle::Lexer;
my $l = AtteanX::Parser::Turtle::Lexer->new( file => $fh );
while (my $t = $l->get_token) {
  ...
}

you make a lexer with file => $fh, then you just keep calling get_token in a loop until it runs out β€” main character energy, honestly πŸ˜­πŸ’–

πŸŽ€ METHODS πŸŽ€

  • new_token ( $type, $start_line, $start_column, @values ) β€” returns a new token with the given type and optional values, and it captures the current line and column of the input data while it's at it ✨ (she's observant like that)
  • get_token β€” returns the next token present in the input πŸ‘‘ literally the whole point of the lexer, we stan

πŸ’€ BUGS πŸ’€

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

ngl bestie the original sentence says "report ... to through" and I'm not about to fix her grammar β€” she said what she said πŸ’… just go to that URL and spill 🫢

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


and that's the whole page, periodt πŸ’– cute lil sign-off for you: this was rendered from perl v5.40.0, dated 2025-01-26, and it's the Attean...:Lexer(3pm) page β€” go forth and tokenize, bestie πŸ¦‹πŸŒΈπŸ‘‘

πŸ“¦ where this page comes from