[system] / trunk / pg / macros / parserAutoStrings.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/parserAutoStrings.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5550 Revision 5551
1=head1 NAME
1 2
2=head1 AutoStrings(); 3parserAutoStrings.pl - Force String() to accpet any string.
3 4
4=head1 DefineStrings("string1","string2",...); 5=head1 DESCRIPTION
5 6
6######################################################################
7#
8# This file allows you to force String() to accept ANY string as a 7This file allows you to force String() to accept ANY string as a
9# legal value. (It will add the string to the context if it isn't 8legal value. (It will add the string to the context if it isn't
10# already defined.) 9already defined.)
11# 10
12# To acocmplish this, put the lines 11To acocmplish this, put the lines
13# 12
14# loadMacros("parserAutoStrings.pl"); 13 loadMacros("parserAutoStrings.pl");
15# AutoStrings(); 14 AutoStrings();
16# 15
17# (You can also pass AutoStrings a context pointer if you wish to 16(You can also pass AutoStrings a context pointer if you wish to
18# alter context other than the current one.) 17alter context other than the current one.)
19# 18
20# There is also a routine to help making strings easier to predefine. 19There is also a routine to help making strings easier to predefine.
21# Fr example: 20For example:
22# 21
23# loadMacros("parserAutoStrings.pl"); 22 loadMacros("parserAutoStrings.pl");
24# DefineStrings("string1","string2"); 23 DefineStrings("string1","string2");
25# 24
26# would define two new strings (string1 and string2). You can pass 25would define two new strings (string1 and string2). You can pass
27# a context reference as the first argument to add strings to that 26a context reference as the first argument to add strings to that
28# context rather than the active one. 27context rather than the active one.
29#
30######################################################################
31 28
32=cut 29=cut
33 30
34sub _parserAutoStrings_init {} 31sub _parserAutoStrings_init {}
35 32

Legend:
Removed from v.5550  
changed lines
  Added in v.5551

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9