[cap-talk] Demonstrating Horton success case with logging
Kevin Reid
kpreid at mac.com
Sun May 20 07:12:06 EDT 2007
On May 20, 2007, at 3:19, Jed Donnelley wrote:
> In terms of playing with it - pardon my ignorance of E, rune, etc.
> - but can you tell me how I can essentially "source" some of the
> program elements in order to more quickly get to the point at the
> end where I run a.start() but with modified log points or whatever?
> Perhaps you can point me to some docs that might help?
def load(file) {
def [v, s] := <elang:syntax.EParser>(file.getTwine()) \
.evalToPair(interp.getTopScope())
interp.setTopScope(s)
return v
}
Evaluate this in the repl, then load(<file:my-horton-stuff.eexpr>).
All names defined by the expression in the file will be in scope at
the repl.
There ought to be a way to do something like this for an updoc file,
but I don't have it yet.
--
Kevin Reid <http://homepage.mac.com/kpreid/>
More information about the cap-talk
mailing list