Syntax...lBlocks(3pm)

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

πŸ’– Embperl::Syntax::EmbperlBlocks πŸ’–

okay so bestie, welcome to the Perl manual page for Embperl::Syntax::EmbperlBlocks β€” that's the syntax module, filed under User Contributed Perl Documentation and living in section 3pm of your friendly neighbourhood man pages. it's giving "niche but iconic", ngl.


✨ NAME ✨

Embperl::Syntax::EmbperlBlocks β€” the syntax for Embperl Blocks and metacommands. that's literally the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

sooo... this section is empty in the original. no synopsis, no cap. she said "figure it out from the DESCRIPTION, bestie" 😭


πŸ¦‹ DESCRIPTION πŸ¦‹

This is a class derived from Embperl::Syntax, and what it does is define the syntax for Embperl Blocks and metacommands. periodt.


πŸŽ€ Methods πŸŽ€

Embperl::Syntax::EmbperlBlocks defines the following methods:


πŸ‘‘ Embperl::Syntax::EmbperlBlocks -> new / $self -> new πŸ‘‘

Create a brand new syntax class. heads up though: this method should only be called inside a constructor of a derived class. like, it's an inside-job method, iykyk.


⭐ AddMetaCmd ($cmdname, $procinfo) ⭐

Adds a new metacommand with the name $cmdname, and it uses the processor info from $procinfo. for what procinfo even is, go peek at Embperl::Syntax. 🫢


🌈 AddMetaCmdWithEnd ($cmdname, $endname, $procinfo) 🌈

Adds a new metacommand named $cmdname, using processor info from $procinfo. and additionally, you're specifying that a matching $endname metacommand must be found to end the block that this metacommand starts. so it's a package deal, bestie β€” one starts it, the other closes it. ✨

procinfo is defined over in Embperl::Syntax, same as always.


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

Adds a new metacommand named $cmdname, plus a second metacommand $endname which ends the block that $cmdname started. it uses processor info from $procinfo. and again β€” procinfo is defined in Embperl::Syntax. πŸ’«


πŸ’– Author πŸ’–

G. Richter β€” richter at embperl dot org 🫢


πŸ”₯ See Also πŸ”₯

  • Embperl::Syntax

🧚 bye bestie 🧚

and that's the whole page, slay. this lil gem comes from perl v5.34.0 and was dated 2022-02-06, under the manual title Syntax...lBlocks(3pm). mwah, go write some blocks πŸ’‹

πŸ“¦ where this page comes from