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

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

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

Revision 4856 Revision 5053
7 # customization for the Parser that you want for your course 7 # customization for the Parser that you want for your course
8 # here. For example, you can make vectors display using 8 # here. For example, you can make vectors display using
9 # ijk notation (and force students to use it for entering 9 # ijk notation (and force students to use it for entering
10 # vectors) by uncommenting: 10 # vectors) by uncommenting:
11 # 11 #
12 # $context{Vector} = $Parser::Context::Default::context{Vector}->copy; 12 # $context{Vector} = Parser::Context->getCopy(undef,"Vector");
13 # $context{Vector}->flags->set(ijk=>1); 13 # $context{Vector}->flags->set(ijk=>1);
14 # $context{Vector}->parens->remove('<'); 14 # $context{Vector}->parens->remove('<');
15 # 15 #
16 # To allow vectors to be entered with parens (and displayed with 16 # To allow vectors to be entered with parens (and displayed with
17 # parens) rather than angle-brakets, uncomment 17 # parens) rather than angle-brakets, uncomment
18 # 18 #
19 # $context{Vector} = $Parser::Context::Default::context{Vector}->copy; 19 # $context{Vector} = Parser::Context->getCopy(undef,"Vector");
20 # $context{Vector}->{cmpDefaults}{Vector} = {promotePoints => 1}; 20 # $context{Vector}->{cmpDefaults}{Vector} = {promotePoints => 1};
21 # $context{Vector}->lists->set(Vector=>{open=>'(', close=>')'}); 21 # $context{Vector}->lists->set(Vector=>{open=>'(', close=>')'});
22 # 22 #
23 # (This actually just turns points into vectors in the answer checker 23 # (This actually just turns points into vectors in the answer checker
24 # for vectors, and displays vectors using parens rather than angle 24 # for vectors, and displays vectors using parens rather than angle

Legend:
Removed from v.4856  
changed lines
  Added in v.5053

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9