TOML::...Grammar(3pm)

✨ TOML::Tiny::Grammar πŸ’–

okay bestie, so the actual module name is TOML::Tiny::Grammar (the manpage header just shortens it to TOML::...Grammar because it's got places to be) β€” and it lives in the User Contributed Perl Documentation corner of your system. perl v5.40.1, dated 2026-06-13, the whole thing is on it. let's go 🫢


🌸 NAME 🌸

TOML::Tiny::Grammar β€” it exports the regex definitions that get used to parse TOML source. that's the whole job. it hands out regexes like candy πŸ“


πŸ’… VERSION πŸ’…

version 0.22


✨ SYNOPSIS ✨

like, this is how you'd actually use it:

use TOML::Tiny::Grammar;

if ($src =~ /$MultiLineString/) {
  ...
}

see how the regex vars just show up in your namespace ready to go? iconic.


πŸ¦‹ DESCRIPTION πŸ¦‹

Exports various regexes for parsing TOML source. that's it, that's the vibe. you import it, you get a whole lil collection of pattern variables, you match things. no cap. πŸ‘‘

ngl the original says "regexex" and honestly? adorable. we all knew what they meant. it's regexes. moving on πŸ’€

πŸŽ€ PATTERNS πŸŽ€

here's the full lineup of every pattern variable this module exports, sorted the way the original sorts them so nothing gets lost:

🌈 White space and ignorables 🌈

the "please ignore this, it's just vibes" patterns:

  • $WS
  • $CRLF
  • $EOL
  • $Comment

πŸ”‘ Keys πŸ”‘

everything you need to name a thing:

  • $BareKey
  • $QuotedKey
  • $SimpleKey
  • $DottedKey
  • $Key

πŸ’– Values πŸ’–

the main characters, fr fr:

  • $Boolean
  • $Escape
  • $StringLiteral
  • $MultiLineStringLiteral
  • $BasicString
  • $MultiLineString
  • $String
  • $Date
  • $Time
  • $DateTime
  • $Hex
  • $Oct
  • $Bin
  • $Dec
  • $Integer
  • $Float

⭐ ...and one more that was living down here all on its own ⭐

  • $SpecialFloat β€” yes it's listed separately in the original, no I will not be merging it into the Values list, we respect the layout in this house πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Jeff Ober <sysread@fastmail.fm> β€” the legend themself.


This software is copyright (c) 2026 by Jeff Ober.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


and that's the whole page, bestie πŸ’… this one shipped as part of the User Contributed Perl Documentation with perl v5.40.1, dated 2026-06-13 β€” so if you're reading it, that's the exact edition you've got in your hands. go forth and regex 🌸✨

πŸ“¦ where this page comes from