Pegex:...::Atoms(3pm)
β¨ NAME β¨
Pegex::Grammar::Atoms β literally the Pegex Regex Atoms, bestie π
π SYNOPSIS π
use Pegex::Grammar::Atoms;
π¦ DESCRIPTION π¦
Okay so Atoms are these special Pegex rules, right? And what they do is represent the tiny little pieces of text you use to build up regular expressions. Usually they're like one or two characters. Small. Iconic. Doing the most with the least. π
Now, you might be sitting there like "girl why would I write COLON in a regex when I could just type :" and honestly? Valid question. But there are three reasons this is encouraged, and they all ate:
- You're defining a grammar for a new language, so it's genuinely worth the time to be clear and verbose. Say what you mean, periodt.
- Using an abstraction like this can help with portability to languages with different regex engines. Slay, cross-platform.
- It makes the grammar for Pegex so much simpler, because a
/is always a part of the Pegex syntax, and aSLASHis part of your grammar. The way that works is justβ¦ chef's kiss. π
πΈ AUTHOR πΈ
Ingy dΓΆt Net</purl> β wait, typo, let me fix that: Ingy dΓΆt Net <ingy@cpan.org> π«Ά
π COPYRIGHT AND LICENSE π
Copyright 2010-2020. Ingy dΓΆt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Fr fr, go wild. π
See <http://www.perl.com/perl/misc/Artistic.html>
and that's the whole page, bestie πβ¨ no cap, that's it β this little writeup was served to you by perl v5.36.0, dated 2022-11-19. mwah π
π¦ where this page comes from
- debian bookworm: libpegex-perl 0.75-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpegex-perl 0.75-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpegex-perl 0.75-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpegex-perl 0.75-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpegex-perl 0.75-2 Β· 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