Commit Graph

13 Commits

Author SHA1 Message Date
Robby Findler
3ba54a2a3e adjust the teaching languages interactions with
drracket so they put the 'source' field into the
syntax objects that they create (at the very top)

this allows the debugger to connect the syntax objects
to the file that's open in drracket (the way this worked
changed a while back, but I didn't check the teaching
languages to see if the debugger was supposed to work there)

closes PR 13159

please merge to the release branch
2012-10-18 22:07:11 -05:00
Robby Findler
f40277df89 Rackety 2012-08-22 22:06:07 -05:00
Matthew Flatt
7126295905 teaching languages: fix copying of `test~object' binding to REPL
As Mike noticed, commit d836cba7c9 triggered a different binding
of `test~object' due to the enclosing module context of the `eval'ed
syntax object.
2012-06-23 02:04:54 -07:00
Eli Barzilay
7d6e79023c Random pickiness.
Spaces at EOFs, indentation, etc.
2012-06-22 12:00:48 -04:00
John Clements
c01e8c1564 refactored to reduce stepper dependencies 2012-06-19 23:51:59 -07:00
Matthew Flatt
248301c9ed disable nested `#lang'
A `syntax/module-reader' reader disables `#lang' when looping to
read a module body. The HtDP languages require a little additional
treatment.
2012-05-29 11:01:52 -06:00
John Clements
8d6e9e79a4 cleanup and refactoring of run-teaching-program, minor teachpack stepper fix
It looks like run-teaching-program hasn't been touched in quite a while.
To begin with, the "rewrite-module" function used to add code to print
out values of non-define exprs, but this is no longer necessary. In fact,
the only thing that it does now is to discard "provide" statements, and
even this may be unnecessary. I rewrote big chunks of this (short) file
to introduce defines, eliminate unnecessary functions, and add stepper-
skip-completely annotations to the requires associated with teachpacks.

Also, it appears that the 'rep' argument to expand-teaching-program
was entirely superfluous; I removed it from the argument list, and also
from the three places in the main tree (deinprogramm, lang, and the stepper)
that call this function.

Let me know of any problems seen with teachpack requires....
2012-03-13 12:09:41 -07:00
John Clements
9cdeda1e04 added purpose statement to expand-teaching-program 2011-07-09 16:19:16 -07:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Robby Findler
8032705cf9 The call to display-results depends on the value of the current-namespace
parameter. Specifically, it is expected to be a namespace that has the GUI
bindings available. Unfortunately, during the dynamic extent of the
uncaught-exception-handler when a syntax error is raised, this may not be
the case because you get a phase 1 namespace, not a phase 0 one.

So, move the call to display-results to the code that runs the student language
programs and out of the uncaught exception handler.
2010-10-13 15:55:16 -05:00
Mike Sperber
7572b24870 Unbreak stepper.
(It was broken by fed1e3dc3e2d7268c0297a0ce699d3deb2ba75c5.)
2010-10-08 13:41:44 +02:00
Robby Findler
fed1e3dc3e adjusted the way the teaching languages work so that signature
violations in the REPL are tracked.
2010-10-07 14:27:56 -05:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00