logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Embperl::Syntax::EmbperlBlocks - syntax for Embperl Blocks and metacommands

Author

       G. Richter (richter at embperl dot org)

Description

       Class derived from Embperl::Syntax to define the syntax for Embperl Blocks and metacommands.

Methods

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

   Embperl::Syntax::EmbperlBlocks->new/$self->new
       Create a new syntax class. This method should only be called inside a constructor of a derived class.

   AddMetaCmd($cmdname,$procinfo)
       Add a new metacommand with name $cmdname and use processor info from $procinfo. See Embperl::Syntax for a
       definition of procinfo.

   AddMetaCmdWithEnd($cmdname,$endname,$procinfo)
       Add a new metacommand with name $cmdname and use processor info from $procinfo. Addtionaly specify that a
       matching $endname metacommand must be found to end the block, that is started by this metacommand.  See
       Embperl::Syntax for a definition of procinfo.

   AddMetaCmdBlock($cmdname,$endname,$procinfostart,$procinfoend)
       Add a new metacommand with name $cmdname and and a second metacommand $endname which ends the block that
       is started by $cmdname.  Use processor info from $procinfo.  See Embperl::Syntax for a definition of
       procinfo.

Name

       Embperl::Syntax::EmbperlBlocks - syntax for Embperl Blocks and metacommands

See Also

       Embperl::Syntax

perl v5.34.0                                       2022-02-06                         Syntax::EmbperlBlocks(3pm)

Synopsis

See Also