On Tue, Nov 23, 2010 at 5:36 PM, chromatic <[email protected]> wrote:
> How do you run a .pir file with ./parrot in such a case?  (If the first
> instruction of the PIR file must be the PIR instruction load_language, how 
> does
> Parrot know to use the PIR compiler to parse that first instruction?)

A PIR front-end, like IMCC for instance, would call the C-level API
calls necessary to register itself as the PIR compiler. libparrot
itself becomes nothing but a bytecode interpreter, it's up to the
various front-ends and embedding applications to attach compilers to
it, if necessary.

--Andrew Whitworth
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to