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

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

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

Revision 5550 Revision 5551
1=head1 NAME
1 2
2loadMacros("MathObjects.pl"); 3contextLimitedNumeric.pl - Allows numeric entry but no operations.
3 4
4=head3 Context("LimitedNumeric") 5=head1 DESCRIPTION
5 6
6 ##########################################################
7 #
8 # Implements a context in which numbers can be entered, 7Implements a context in which numbers can be entered,
9 # but no operations are permitted between them. 8but no operations are permitted between them.
10 # 9
11 # There are two versions: one for lists of numbers 10There are two versions: one for lists of numbers
12 # and one for a single number. Select them using 11and one for a single number. Select them using
13 # one of the following commands: 12one of the following commands:
14 # 13
15 # Context("LimitedNumeric-list"); 14 Context("LimitedNumeric-List");
16 # Context("LimiteNumeric"); 15 Context("LimiteNumeric");
17 # 16
18 # (Now uses Parcer::Legacy::LimitedNumeric to implement 17(Now uses Parcer::Legacy::LimitedNumeric to implement
19 # these contexts.) 18these contexts.)
20 19
21=cut 20=cut
22 21
23################################################## 22loadMacros("MathObjects.pl");
24 23
25sub _contextLimitedNumeric_init { 24sub _contextLimitedNumeric_init {
26 25
27 my $context = $main::context{"LimitedNumeric-List"} = Parser::Context->getCopy("LimitedNumeric"); 26 my $context = $main::context{"LimitedNumeric-List"} = Parser::Context->getCopy("LimitedNumeric");
28 $context->{name} = "LimitedNumeric-List"; 27 $context->{name} = "LimitedNumeric-List";

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9