Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 31.335.238 Times

Text::MacroScript 1.38

  Date Added: September 06, 2010  |  Visits: 756


Report Broken Link
Printer Friendly Version

Product Homepage
Download (110 downloads)

Text::MacroScript is a macro pre-processor with embedded perl capability. SYNOPSIS use Text::MacroScript ; # new() for macro processing my $Macro = Text::MacroScript->new ; while( <> ) { print $Macro->expand( $_ ) if $_ ; } # Canonical use (the filename improves error messages): my $Macro = Text::MacroScript->new ; while( <> ) { print $Macro->expand( $_, $ARGV ) if $_ ; } # new() for embedded macro processing my $Macro = Text::MacroScript->new( -embedded => 1 ) ; # Delimiters default to <: and :> # or my $Macro = Text::MacroScript->new( -opendelim => [[, -closedelim => ]] ) ; while( <> ) { print $Macro->expand_delimited( $_, $ARGV ) if $_ ; } # Create a macro object and create initial macros/scripts from the file(s) # given: my $Macro = Text::MacroScript->new( -file => [ local.macro, ~/.macro/global.macro ] ) ; # Create a macro object and create initial macros/scripts from the # definition(s) given: my $Macro = Text::MacroScript->new( -macro => [ [ MAX_INT => 32767 ], ], -script => [ [ DHM2S => [ my $s = (#0*24*60*60)+(#1*60*60)+(#2*60) ; "#0 days, #1 hrs, #2 mins = $s secs" ], ], -variable => [ *MARKER* => 0 ], ) ; # We may of course use any combination of the options. my $Macro = Text::MacroScript->new( -comment => 1 ) ; # Create the %%[] macro. # define() $Macro->define( -macro, $macroname, $macrobody ) ; $Macro->define( -script, $scriptname, $scriptbody ) ; $Macro->define( -variable, $variablename, $variablebody ) ; # undefine() $Macro->undefine( -macro, $macroname ) ; $Macro->undefine( -script, $scriptname ) ; $Macro->undefine( -variable, $variablename ) ; # undefine_all() $Macro->undefine( -macro ) ; $Macro->undefine( -script ) ; $Macro->undefine( -variable ) ; # list() @macros = $Macro->list( -macro ) ; @macros = $Macro->list( -macro, -namesonly ) ; @scripts = $Macro->list( -script ) ; @scripts = $Macro->list( -script, -namesonly ) ; @variables = $Macro->list( -variable ) ; @variables = $Macro->list( -variable, -namesonly ) ; # load_file() - always treats the contents as within delimiters if we are # doing embedded processing. $Macro->load_file( $filename ) ; # expand_file() - calls expand_embedded() if we are doing embedded # processing otherwise calls expand(). $Macro->expand_file( $filename ) ; @expanded = $Macro->expand_file( $filename ) ; # expand() $expanded = $Macro->expand( $unexpanded ) ; $expanded = $Macro->expand( $unexpanded, $filename ) ; # expand_embedded() $expanded = $Macro->expand_embedded( $unexpanded ) ; $expanded = $Macro->expand_embedded( $unexpanded, $filename ) ; This bundle also includes the macro and macrodir scripts which allows us to expand macros without having to use/understand, although you will have to learn the handful of macro commands available and which are documented here and in macro. macro provides more documentation on the embedded approach. The library supplied provides some functions which you may choose to use in HTML work for example..

Requirements: No special requirements
Platforms: Linux
Keyword: Embedded Embedded Perl Expand Libraries Macro Macro- Macroscript New Programming Textmacroscript Undefine
Users rating: 0/10

License: Freeware Size: 36.86 KB
Libraries  -  Module::Starter::Smart 0.0.2
Module::Starter::Smart is a Perl module that lets you add new modules into an existing distribution. SYNOPSIS use Module::Starter qw/Module::Starter::Simple Module::Starter::Smart/; Module::Starter->create_distro(%args); # or in...
4.1 KB  
Libraries  -  Filter::Macro 0.11
Filter::Macro is a Perl module to make macro modules that are expanded inline. SYNOPSIS In package MyHandyModules; use Filter::Macro; # lines below will be expanded into callers code use strict; use warnings; use...
13.31 KB  
Libraries  -  Blatte 0.9.4
Blatte is a Perl module with text macro/markup/template language. SYNOPSIS use Blatte; use Blatte::Builtins; my $perl = &Blatte::Parse(...some Blatte program ...); if (defined($perl)) { my $result = eval $perl; if (defined($result)) {...
31.74 KB  
Development Tools  -  HTML::Merge for HTML Tools 3.50
HTML::Merge is an embedded HTML/Perl/SQL tool used to create dynamic web content. It uses a configuration file to retrieve information about database connectivity and debugging. It has an embedded debugging tool and on-line configuration.
184.32 KB  
Development Tools  -  HTML::Merge 1.0
HTML::Merge is an embedded HTML/Perl/SQL tool used to create dynamic web content. It uses a configuration file to retrieve information about database connectivity and debugging. It has an embedded debugging tool and on-line configuration.
Modules  -  Pibb Comments 0.1
The Pibb Comments plug-in displays an embedded Pibb Thread at the bottom of each new blog post to allow realtime discussion of the post.A user will need to login to Pibb (with an OpenID account), before they can make a comment.An OpenID accountis...
20.48 KB  
Libraries  -  Inline-API 0.44
Inline-API is a Perl module that teach you how to bind a programming language to Perl using SYNOPSIS #!/usr/bin/perl use Inline Foo; say_it(foo); # Use Foo to print "Hello, Foo" __Foo__ foo-sub say_it { foo-my $foo =...
91.14 KB  
Libraries  -  List::RewriteElements 0.09
List::RewriteElements is a Perl module that can create a new list by rewriting elements of a first list. SYNOPSIS use List::RewriteElements; Constructor Simplest case: Input from array, output to STDOUT. $lre =...
26.62 KB  
Libraries  -  Tangram::Type::Extending 2.10
Tangram::Type::Extending is a Perl module for teaching Tangram about new types. Tangram::Type is the root of a hierarchy of classes that are responsible mapping individual field to SQL entities (columns in the simplest cases). There is one Type...
153.6 KB  
Libraries  -  Text::PORE 1.02
Text::PORE is a Perl Object Rendering Engine. pore intr.v. 1. To read or study carefully and attentively The American HeritageŽ Dictionary of the English Language, Fourth Edition SYNOPSIS How to use PORE to render Perl objects. use...
32.77 KB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.13.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB