[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> The subject says it all.

> As parrot is designed to be targetted by many langauges,
> how will it handle 'eval' opcodes for those different languages?

It'll be a sequence like this

  loadlib Phandle, "your shared lib"
  dlfunc  Pcompiler, Phandle, "compile"
  compreg "language", Pcompiler        # 1)
  ...
  compreg Px, "language"               # get a compiler reference
  compile P0, Px, "the source"         # compile source code
  invoke                               # eval

1) is currently not yet implemented, its a variant of register this
subroutine as a compiler for "language".

If the compiler is written in PASM, there is another variant:

  compreg "language", _my_compiler # register this Sub as a compiler

All other pieces are working.

> Shell out to a seperate process?

That's another way.

> Nigel.

leo

Reply via email to