[system] / trunk / pg / lib / WeBWorK / PG / Translator.pm Repository:
ViewVC logotype

Log of /trunk/pg/lib/WeBWorK/PG/Translator.pm

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 6584 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 30 20:17:58 2010 UTC (9 years ago) by gage
File length: 61137 byte(s)
Diff to previous 6560
switch to use WWSafe.pm


Revision 6560 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 25 13:57:52 2010 UTC (9 years ago) by gage
File length: 61135 byte(s)
Diff to previous 6535
reverting to using Safe -- so that we can test the 2.29 safe version.





Revision 6535 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 17 02:32:11 2010 UTC (9 years ago) by gage
File length: 61137 byte(s)
Diff to previous 6532
make sure the recorded_score of $problem_state is initialized to avoid spurious warning messages


Revision 6532 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 13 18:04:06 2010 UTC (9 years, 1 month ago) by gage
File length: 61056 byte(s)
Diff to previous 6501
use WWSafe instead of Safe.pm


Revision 6501 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 11 15:31:22 2010 UTC (9 years, 1 month ago) by gage
File length: 61054 byte(s)
Diff to previous 6387
added predeclaration of beginproblem

removed defined(%hash) from Translator/dumpvar


Revision 6387 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 21 15:44:42 2010 UTC (9 years, 4 months ago) by gage
File length: 60956 byte(s)
Diff to previous 6346
import from gage_dev.  Changed references to PG_FLAGS to ::PG->{flags}.  This should fix bugs in compoundProblem.pl, problemPanic.pl and problemRandomize.pl -- but only compoundProblem.pl has been tested -- lightly

Revision 6346 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 10 12:39:40 2010 UTC (9 years, 5 months ago) by gage
File length: 60459 byte(s)
Diff to previous 6292
Merging changes gage branch  gage_dev/pg

removed dependence on AUTOLOAD	which does not work well with newer versions of Safe.pm.  It wasn't needed 
in any case.  There remain other incompatibilies of WeBWorK with Safe.pm 2.27

Added more support for WARN_MESSAGE  and DEBUG_MESSAGE

Changed List.pm to ChoiceList.pm  to remove confusion with MathObjects List object

Additional support for geogebra applets



Revision 6292 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 8 18:00:53 2010 UTC (9 years, 6 months ago) by mgage
File length: 60295 byte(s)
Diff to previous 6249
syncing cvn with changes made to the cvs

Revision 6249 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 14 11:39:02 2010 UTC (9 years, 7 months ago) by gage
File length: 60134 byte(s)
Diff to previous 6244
major update which adds objective methods to the basic code of PG.
HEAD should be considered more beta than usual for a few days until minor glitches
are shaken out.
new modules needed:

PGcore PGalias PGresource PGloadfiles PGanswergroup PGresponsegroup  Tie::IxHash

Revision 6244 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 14 01:07:37 2010 UTC (9 years, 7 months ago) by gage
File length: 60140 byte(s)
Diff to previous 6164
major change to the base


major update which adds objective methods to the basic code of PG.
HEAD should be considered more beta than usual for a few days until minor glitches
are shaken out.
new modules needed:

PGcore PGalias PGresource PGloadfiles PGanswergroup PGresponsegroup  Tie::IxHash

Revision 6164 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 5 13:00:43 2009 UTC (10 years, 1 month ago) by gage
File length: 58888 byte(s)
Diff to previous 6058
Added BEGIN_PGML and END_PGML

Revision 6058 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 25 23:28:44 2009 UTC (10 years, 5 months ago) by gage
File length: 58201 byte(s)
Diff to previous 5948
syncing pg HEAD with pg2.4.7 on 6/25/2009

Revision 5948 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 29 02:14:32 2008 UTC (10 years, 11 months ago) by dpvc
File length: 58726 byte(s)
Diff to previous 5792
The \s regular expression was matching newlines, and so newlines
around BEGIN_TEXT/END_TEXT (and other such constructs) were being
removed.  This is OK when the problem runs correctly, but when an
error message is produced, the line number of the error report will
not correspond to the proper line number in the code listing.
Solution is to use [ \t] instead.

Revision 5792 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 26 14:53:59 2008 UTC (11 years, 5 months ago) by gage
File length: 58723 byte(s)
Diff to previous 5754
Forward ports from rel-2-4-5

Revision 5754 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 24 21:36:19 2008 UTC (11 years, 5 months ago) by gage
File length: 58720 byte(s)
Diff to previous 5638
forward port
of the rel-2-4-5 changes that allow BEGIN_HINT, etc.

Revision 5638 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 26 20:52:18 2008 UTC (11 years, 7 months ago) by gage
File length: 56834 byte(s)
Diff to previous 5312
provide ans_label for the current answer being evaluated to
answer evaluator subroutines as well to AnswerEvaluator objects.

Revision 5312 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 10 20:00:24 2007 UTC (12 years, 4 months ago) by sh002i
File length: 56802 byte(s)
Diff to previous 4680
forward-port (sh002i): Fix PG_restricted_eval so that no lexicals are
used in the scope of the eval()

Revision 4680 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 28 19:12:12 2006 UTC (13 years ago) by sh002i
File length: 56796 byte(s)
Diff to previous 4654
SECURITY: tighter constraints on which macro files can be loaded without
restriction. Previously, any file that *contained* the strings PG.pl,
dangerousMacros.pl, or IO.pl would be loaded with an empty opmask.

This is the second attempt to close this hole. The previous attempt
assumed that | binds tighter than ^ and $, which is not true. (Noticed
by dpvc). It also failed to escape metacharacters in the file names.

Revision 4654 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 15 16:50:05 2006 UTC (13 years, 1 month ago) by sh002i
File length: 56643 byte(s)
Diff to previous 4388
SECURITY: tighter constraints on which macro files can be loaded without
restriction. Previously, any file that *contained* the strings PG.pl,
dangerousMacros.pl, or IO.pl would be loaded with an empty opmask.

Revision 4388 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 19 23:31:38 2006 UTC (13 years, 3 months ago) by dpvc
File length: 56639 byte(s)
Diff to previous 4134
Fixed the problem I pointed out at MathFest where some errors were not
being reported in the traditional num_cmp() function.  (Things like
'x+3' in a numeric field would not be reported as an error and x would
be treated as 0).  This is due to a change in version 1.14 when Sam
was normalizing the error reporting code; he didn't notice that warn
had been rerouted to die in PG_answer_eval().  I have replaced it.

Revision 4134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 19 15:13:33 2006 UTC (13 years, 5 months ago) by dpvc
File length: 56582 byte(s)
Diff to previous 3426
Fixed grade_problem so taht is uses the safe compartment.  (This is
important because the problem can supply its own grader, and that code
shoudl be run in the safe compartment, just like the answer checkers
are.  Without this, graders could call PG_restricted_eval() and
actually get access to the full WW environment rather than the safe
compartment.)

Revision 3426 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 29 19:44:04 2005 UTC (14 years, 4 months ago) by sh002i
File length: 56509 byte(s)
Diff to previous 3214
Fix use of $SIG{__WARN__} and $SIG{__DIE__}.

* Each change to $SIG{__WARN__} and $SIG{__DIE__} is now dynamically
scoped with "local", rather than changing globally and then restoring at
the end of the block.

* The special value "DEFAULT" is used instead of sub {CORE::die(@_)} or
sub {CORE::warn(@_)} when preparing to eval STRING code.

* Where $SIG{__WARN__} and $SIG{__DIE__} are overridden to do
preprocessing with PG_errorMessage, the previously installed handlers
will be called instead of the built-in warn or die functions after
preprocessing occurs. (For example, the warn and die handlers defined in
Apache::WeBWorK or the warn handler defined in WeBWorK::PG will be
called.)

* The behavior in process_answers is modified so that the custom
handlers are installed once before the answer evaluation loop. This
causes them to be in effect during the setup/teardown code, but I don't
think this will be a problem.

Revision 3214 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 9 18:33:07 2005 UTC (14 years, 8 months ago) by gage
File length: 56463 byte(s)
Diff to previous 3187
Provide a default warning subroutine if none has been defined.

Revision 3187 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 26 23:03:12 2005 UTC (14 years, 9 months ago) by gage
File length: 56273 byte(s)
Diff to previous 3093
Allow subclasses of AnswerEvalutor to be used.  Check for a match
with a substring AnswerEvaluator instead of equality.

Revision 3093 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 16 00:52:49 2005 UTC (14 years, 11 months ago) by gage
File length: 56273 byte(s)
Diff to previous 3071
Undoing some of the temporary changes I made to the warn message.

This may break what happens with xmlrpc however. (sigh)

Revision 3071 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 1 22:29:41 2005 UTC (14 years, 11 months ago) by gage
File length: 56145 byte(s)
Diff to previous 2698
Temporary modifications which allow the Warning mechanisms to work when
using the XML access methods.

This needs to be looked at again.  There is also a problem with defining
permissions for creating directories.  There is a temporary #FIXME
that seems to work.

Revision 2698 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 28 13:52:33 2004 UTC (15 years, 3 months ago) by dpvc
File length: 57635 byte(s)
Diff to previous 2167
Add better error reporting in PG translator.  In particular, these
changes add two new features:

	1)  produce a full stack trace when a .pg file dies, and
	2)  convert (eval nnn) references to filenames, when
	    possible, in warn and die messages while processing a
	    .pg file.

There is also a change in the webwork tree that is needed to make this
all work, so be sure to apply updates in both trees.

Revision 2167 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 22 22:32:43 2004 UTC (15 years, 6 months ago) by gage
File length: 53297 byte(s)
Diff to previous 2158
Moved be_strict after package main;

Revision 2158 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 22 20:48:51 2004 UTC (15 years, 6 months ago) by gage
File length: 53298 byte(s)
Diff to previous 2157
We are now using ww_strict.pm instead of strict.pm in be_strict;

Revision 2157 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 22 20:46:20 2004 UTC (15 years, 6 months ago) by gage
File length: 53303 byte(s)
Diff to previous 2142
We are using our own version of strict.pm that has a require Carp;  commented out.
This is included in be_strict which is used to implement strict within PG macro files
which need to be evaluted inside the Safe compartment

Revision 2142 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 21 23:54:00 2004 UTC (15 years, 6 months ago) by apizer
File length: 53295 byte(s)
Diff to previous 2057
Replaced PGsort with a version that uses quick sort.  This fixes the
problem the old PGsort had with Perl compiled with ithreads.

Arnie

Revision 2057 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 8 22:53:03 2004 UTC (15 years, 7 months ago) by gage
File length: 52568 byte(s)
Diff to previous 1759
Preliminary changes that may eventually allow us to solve the be_strict problem for 5.8.0

Revision 1759 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 26 16:59:30 2004 UTC (15 years, 10 months ago) by gage
File length: 51690 byte(s)
Diff to previous 1556
Minor change to the definition of the timer

Revision 1556 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 1 02:40:09 2003 UTC (16 years, 2 months ago) by sh002i
File length: 51680 byte(s)
Diff to previous 1553
changed the way the IO modules work: shared subroutines are in IO now,
and IO has a hash %WeBWorK::PG::IO::SHARE which can be added to
Translator's %shared_subroutine_hash directly.

Revision 1553 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Sep 30 01:20:55 2003 UTC (16 years, 2 months ago) by sh002i
File length: 51738 byte(s)
added files from WW2

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9