Home : Documentation : Embperl::Syntax
Google Web perl.apache.org

 
Home
 
Features
 
Introduction
 
Documentation
 
README
 
README.v2
 
Configuration
 
Embperl
 
Embperl::Object
 
Embperl::Form::Validate
 
Embperl::Syntax
 
Embperl
 
EmbperlBlocks
 
EmbperlHTML
 
HTML
 
ASP
 
SSI
 
Perl
 
POD
 
Text
 
RTF
 
Mail
 
Embperl::Recipe
 
Embperl::Mail
 
1.3.6 documentation
 
DBIx::Recordset
 
Installation
 
Download
 
Support
 
Changes
 
Wiki
 
More infos
 
Add info about Embperl
 
Login

    Stable 2.4.0
    Beta 2.5.0_3
Support the development of Embperl! More...
Methods
[ << Prev: Defining your own Syntax ] [ Content ] [ Next: Syntax Structure and Parameter >> ]



Embperl::Syntax -> new / $self -> newtop

Create a new syntax class. This method should only be called inside a constructor of a derived class.



$self -> AddToRoot ($elements)top

This adds a new element to the root of the parser tree. $elements must be a hashref. See Embperl::Syntax::ASP for an example.



$self -> AddInitCode ($compiletimecode, $initcode, $termcode, $procinfo)top

This gives you the possibility to add some Perl code, that is always executed at the beginning of a document ($initcode), at the end of the document ($termcode) or at compile time ($compiletimecode). The three strings must be valid Perl code. See Embperl::Syntax::SSI for an example. $procinfo is a hashref that can consits of addtional processor infos (see below) for the document.



$self -> GetRoottop

Returns the root of the parser tree.



Embperl::Syntax::GetSyntax ($name, $oldname)top

Returns a syntax object which is build form the syntaxes named in $name. If $oldname is given, $name can start with a + or - to add or subtract a syntax. This is normally only needed by Embperl itself or to implement a syntax switch statement (see Embperl::Syntax::SSI for an example.)



$self -> CloneHash ($old, $replace)top

Clones a hash which is given as hashref in $old, optional replace the tags given in the hashref $replace and return a hashref to the new hash.


[ << Prev: Defining your own Syntax ] [ Content ] [ Next: Syntax Structure and Parameter >> ]

© 1997-2012 Gerald Richter / ecos gmbh