interpreting Core Erlang
Thu Apr 1 13:13:56 CEST 2004
On Thu, 1 Apr 2004, Luke Gorrie wrote:
> Richard Carlsson <> writes:
> > if you'd make the effort to rewrite the debugger, it would be better
> > to have it work directly on Beam code, with mappings from program
> > points to source code lines, etc.
> And Beam code doesn't include any mapping information like that today,
Nope. All line numbers are embedded in the debug-info syntax tree.
> > In the shell, you'd still have to go through pretty much the same
> > motions anyway in order to first translate the code to Core Erlang and
> > then interpret that. So it doesn't really make anything simpler.
> Could you use the first few passes of the compiler for this?
Yes. Though you might need to do some trickery if you want to
translate a single function rather than a whole module at a time.
Richard Carlsson () (This space intentionally left blank.)
E-mail: WWW: http://user.it.uu.se/~richardc/
"Having users is like optimization: the wise course is to delay it."
-- Paul Graham
More information about the erlang-questions