Thu Feb 28 11:50:17 CET 2008
this work when using it like this:
Welcome to MzScheme v220.127.116.11 [3m], Copyright (c) 2004-2008 PLT Scheme Inc.
> (require errortrace)
> (enter! (file "/tmp/test.ss"))
/tmp/test.ss:8:12: (error (quote bla))
=== context ===
the file /tmp/test.ss is:
(define (x) #f)
(define (a) (b) (x))
(define (b) (c) (x))
(define (c) (error 'bla))
now, to incorporate it in snot, it looks like there's a combination
needed with prompts. indeed.. the error printing works fine when
wrapped in 'prompt', and execution continues thereafter.
first thing to note: 'prompt' and 'abort' i can add those in sweb
instead of the current combination of parameters and call/ec.
second: prompt is readily applied in the repl in brood, at run/error
it works for host/purrr.ss by replacing the toplevel error printer by
a prompt. probably can do the same in snot.
hmm.. it's not in snot that the prompt should be. i did add some
marking to the code that prints 'language-rep-error' in case the
underlying rep (provided by the program!) doesn't print the error
itself. so in brood the error should be printed, and preferably INSIDE
the box context.
"console.ss" is loaded in the snot context from "snot.ss". the latter
file registers the different languages using the 'register-language'
snot function present in snot's toplevel. ("snot.ss" is not 'require'd
what i'm interested in is frames that run up to the sandboxed
evaluator, so maybe it should be implemented in snot/box.ss ? see snot
ramblings for more..