PPIx::R...p::Token(3)

πŸ’– PPIx::Regexp::Token πŸ’–

okay so bestie, welcome to the manual page for PPIx::Regexp::Token β€” that's PPIx::R...p::Token(3) if you're squinting at the header, and it lives in the User Contributed Perl Documentation section. she's a base class, she's iconic, and she's about to be your new fave. πŸŽ€


✨ NAME ✨

PPIx::Regexp::Token β€” the Base class for PPIx::Regexp tokens. the blueprint. the blueprint-iest blueprint. πŸ‘‘


🌸 SYNOPSIS 🌸

like, here's the whole vibe in three lines:

use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{foo}' )->print();

that's it. that's the whole thing. slay. πŸ’…


πŸ¦‹ INHERITANCE πŸ¦‹

PPIx::Regexp::Token is a PPIx::Regexp::Element. so she's got a parent, and she eats. πŸ’–

and PPIx::Regexp::Token is the parent of β€” okay deep breath, this is a whole friend group, seventeen of them, all absolutely thriving:

  • PPIx::Regexp::Token::Assertion
  • PPIx::Regexp::Token::Backtrack
  • PPIx::Regexp::Token::CharClass
  • PPIx::Regexp::Token::Code
  • PPIx::Regexp::Token::Comment
  • PPIx::Regexp::Token::Control
  • PPIx::Regexp::Token::Greediness
  • PPIx::Regexp::Token::GroupType
  • PPIx::Regexp::Token::Literal
  • PPIx::Regexp::Token::Modifier
  • PPIx::Regexp::Token::NoOp
  • PPIx::Regexp::Token::Operator
  • PPIx::Regexp::Token::Quantifier
  • PPIx::Regexp::Token::Reference
  • PPIx::Regexp::Token::Structure
  • PPIx::Regexp::Token::Unknown
  • PPIx::Regexp::Token::Unmatched

a whole squad. mother of a dynasty honestly. 🌈


🧚 DESCRIPTION 🧚

so basically this class represents the base of the class hierarchy for tokens in the PPIx::Regexp package. she's not out here doing the most herself β€” she's the foundation everything else gets built on. main character energy, but make it architectural. πŸ—οΈβœ¨


⭐ METHODS ⭐

ngl, this class keeps it lowkey: she provides no public methods beyond those her superclass already gave her. she's a giver, not a gatekeeper. 🫢

🌸 first_token

this method returns its invocant. (yes, it just returns itself. she's her own first token. self-love, periodt.) πŸ’…

🌸 last_token

this method returns its invocant. (and she's her own last token too. consistent queen.) πŸ‘‘


πŸŽ€ SUPPORT πŸŽ€

Support is by the author. if something's broken, please file bug reports at:

https://github.com/trwyant/perl-PPIx-Regexp/issues

or, if you're feeling old-school, in electronic mail to the author. either way, they want to hear about it bestie, don't suffer in silence. 😭


πŸ‘‘ AUTHOR πŸ‘‘

Thomas R. Wyant, III β€” harryfmudd at comcast dot net

(no cap, that's the whole author section. legend behavior.) 🌟


Copyright (C) 2009-2023, 2025-2026 by Thomas R. Wyant, III

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.

fr fr, read that last paragraph again β€” no warranty, none, zero, nada. she's free but she's not making promises. πŸ™ˆ

and that's the whole page, babes! this one came to you from perl v5.42.2, dated 2026-06-15 β€” go forth and tokenize responsibly. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from