Log of /branches/gage_dev/pg/lib/WeBWorK/PG/Translator.pm
Parent Directory
Revision
6490 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Nov 6 20:30:00 2010 UTC (2 years, 6 months ago) by
gage
File length: 61050 byte(s)
Diff to
previous 6475
various updates to macros.
removed defined(%hash) statements from Translator.pm (dumpvar) which
were bothering perl 5.12.2
Revision
6249 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 14 11:39:02 2010 UTC (3 years ago) by
gage
Original Path:
trunk/pg/lib/WeBWorK/PG/Translator.pm
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 (3 years ago) by
gage
Original Path:
trunk/pg/lib/WeBWorK/PG/Translator.pm
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
5948 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 29 02:14:32 2008 UTC (4 years, 4 months ago) by
dpvc
Original Path:
trunk/pg/lib/WeBWorK/PG/Translator.pm
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
4680 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Nov 28 19:12:12 2006 UTC (6 years, 5 months ago) by
sh002i
Original Path:
trunk/pg/lib/WeBWorK/PG/Translator.pm
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
4388 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Aug 19 23:31:38 2006 UTC (6 years, 9 months ago) by
dpvc
Original Path:
trunk/pg/lib/WeBWorK/PG/Translator.pm
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 (6 years, 11 months ago) by
dpvc
Original Path:
trunk/pg/lib/WeBWorK/PG/Translator.pm
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 (7 years, 9 months ago) by
sh002i
Original Path:
trunk/pg/lib/WeBWorK/PG/Translator.pm
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
3071 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Jan 1 22:29:41 2005 UTC (8 years, 4 months ago) by
gage
Original Path:
trunk/pg/lib/WeBWorK/PG/Translator.pm
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 (8 years, 8 months ago) by
dpvc
Original Path:
trunk/pg/lib/WeBWorK/PG/Translator.pm
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.
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.