Syntax...xtract(3pm)

πŸ“¦
version 2.5.0 Β· 2 versions
, in ubuntu jammy

πŸ’– Embperl::Syntax::MsgIdExtract β€” the manual page, but make it cute πŸ’–

okay so this is Embperl::Syntax::MsgIdExtract, a Perl module from the User Contributed Perl Documentation corner of the world, and bestie, it's here to define the syntax for i18n using Embperl blocks. that's it, that's the whole job description. let's get into it πŸ¦‹


✨ NAME ✨

Embperl::Syntax::MsgIdExtract β€” define syntax for i18n using Embperl blocks. periodt.


🌸 SYNOPSIS 🌸

no cap, this section is literally empty. the original page ships it blank. we move πŸ’…

πŸŽ€ DESCRIPTION πŸŽ€

This class is derived from Embperl::Syntax, and its whole thing is defining the syntax for internationalisation (yes, i18n, the word with all the vowels stolen) using [= =] Embperl blocks and metacommands.

For the actual details, go see Embperl, section I18N. iykyk πŸ“–


🧚 Methods 🧚

Embperl::Syntax::MsgIdExtract defines the following methods, and we're gonna go through every single one because nobody gets left behind:

πŸ’œ Embperl::Syntax::MsgIdExtract -> new / $self -> new

Create a new syntax class. important: this method should only be called inside a constructor of a derived class. like, that's the rule. don't be out here calling it wherever πŸ™ˆ

πŸ’œ AddMetaCmd ($cmdname, $procinfo)

Add a new metacommand with name $cmdname, and use processor info from $procinfo. For a definition of what procinfo even is, see Embperl::Syntax. ✨

πŸ’œ AddMetaCmdWithEnd ($cmdname, $endname, $procinfo)

Add a new metacommand with name $cmdname, and use processor info from $procinfo. Additionally β€” and this is the special sauce β€” you specify that a matching $endname metacommand must be found to end the block that this metacommand starts. So the block knows how to close itself, very main character energy πŸ‘‘

For a definition of procinfo, see Embperl::Syntax. (same as above, bestie, it's a whole thing)

πŸ’œ AddMetaCmdBlock ($cmdname, $endname, $procinfostart, $procinfoend)

Add a new metacommand with name $cmdname, plus a second metacommand $endname which ends the block started by $cmdname. Use processor info from $procinfo.

And yes, for a definition of procinfo, see Embperl::Syntax β€” we love a consistent reference 🫢


πŸ‘‘ Author πŸ‘‘

G. Richter (richter at embperl dot org) β€” shoutout, legend, thank you for your service πŸ«‘πŸ’–


🌈 See Also 🌈

  • Embperl::Syntax

and that's the page!! footer lore for the girlies: this is perl v5.34.0, dated 2022-02-06, filed under Syntax...xtract(3pm). slay, bye bestie πŸ’…πŸŒΈ

πŸ“¦ where this page comes from