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

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

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

Revision 4996 Revision 4997
1loadMacros("Parser.pl"); 1loadMacros("Parser.pl");
2 2
3sub _contextLimitedVector_init {}; # don't load it again 3sub _contextLimitedVector_init {}; # don't load it again
4
5=head3 Context("LimitedVector")
4 6
5########################################################## 7##########################################################
6# 8#
7# Implements a context in which vectors can be entered, 9# Implements a context in which vectors can be entered,
8# but no vector operations are permitted. So students will 10# but no vector operations are permitted. So students will
26# 28#
27 29
28# 30#
29# Handle common checking for BOPs 31# Handle common checking for BOPs
30# 32#
33
34=cut
35
31package LimitedVector::BOP; 36package LimitedVector::BOP;
32 37
33# 38#
34# Do original check and then if the operands are numbers, its OK. 39# Do original check and then if the operands are numbers, its OK.
35# Otherwise, check if there is a duplicate constant from either term 40# Otherwise, check if there is a duplicate constant from either term

Legend:
Removed from v.4996  
changed lines
  Added in v.4997

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9