Dan Sugalski <[EMAIL PROTECTED]> wrote:
> At 10:37 AM 11/21/00 +0000, David Grove wrote:
> >Thanks for the clarifications, Simon.
> >
> >Simon Cozens <[EMAIL PROTECTED]> wrote:
> >If we were simply feeding it perl with a single syntax, we could get
away
> >with a "one call" scheme. But since we're dealing with almost
certainly
> >mutually exclusive syntax and semantics, it probably needs more
> >information.
>
> But we are. The call is probably going to be something like:
>
> status = parse_perl(perl_interpreter *my_interp,
> char *script,
> struct HIR *end_result,
> long flags);
>
> the fact that the script has a "use pythonish;" in it is entirely
> irrelevant--the program calls into the parser, which returns a status
and
> possibly a parsed representation of the program. The parser gets to
deal
> with all the grotty details.
What form is this intermediary parsed representation in? API, right? Then
I need to clarify that when I say bytecode, I've meant whatever this
intermediary parsed representation is, be that pure perl, API, or
otherwise.
p