RDF::T...::Lexer(3pm)
β¨ RDF::Trine::Parser::Turtle::Lexer β¨
okay bestie, so this is the User Contributed Perl Documentation page for RDF::Trine::Parser::Turtle::Lexer β the little tokenizer goblin that lives under the floorboards of your RDF parsing. π
πΈ NAME πΈ
RDF::Trine::Parser::Turtle::Lexer β Tokenizer for parsing Turtle, TriG, and N-Triples
That's the whole job. It chops your fancy RDF text into tokens so the parser can vibe with it. Three syntaxes, one lexer, no drama. π¦
π VERSION π
This document describes RDF::Trine::Parser::Turtle::Lexer version 1.019. yes it's an old one and yes it still ate π
β¨ SYNOPSIS β¨
here's the whole vibe, literally just feed it a filehandle and go token by token:
use RDF::Trine::Parser::Lexer;
my $l = RDF::Trine::Parser::Lexer->new( file => $fh );
while (my $t = $l->get_token) {
...
}
that's it. that's the loop. main character energy fr fr π₯
π METHODS π
new_token ( $type, @values )
Returns a new token with the given type and optional values, capturing the current line and column of the input data.
so it hands you a fresh token, stamps it with where in the file you are (line + column), and passes along whatever values you gave it. tracking positions like a true detective π΅οΈβοΈ
get_token
Returns the next token present in the input.
call it in a loop, get tokens, live your life. that's the whole method. iconic behaviour honestly π
π BUGS π
Please report any bugs or feature requests to through the GitHub web interface at https://github.com/kasei/perlrdf/issues.
not me having to tell you this but like... if it's broken, tell the humans on GitHub, not your group chat. the issue tracker is where it goes π
π«Ά AUTHOR π«Ά
Gregory Todd Williams "<gwilliams@cpan.org>"
shoutout to the author, absolute legend, we stan β
π COPYRIGHT π
Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
same terms as Perl itself β the classic, the blueprint, the licensing moment π
and that's the whole page bestie!! π
this page comes to you from perl v5.38.2 and the date stamp 2024-01-13 β yes it's a little vintage, but vintage is a look πβ¨ go tokenize something cute π¦π
π¦ where this page comes from
- debian trixie: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms